Skip to content

Commit 038522a

Browse files
airweenzimmerle
authored andcommitted
Small fixes in log messages to help debugging
1 parent b8160cc commit 038522a

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
v3.0.4 - YYYY-MMM-DD (to be released)
22
-------------------------------------
33

4+
- Small fixes in log messages to help debugging the file upload
5+
[Issue #2130 - @airween]
46
- Fix Cookie header parsing issues
57
[Issue #2201 - @airween, @martinhsv]
68
- Fix rules with nolog are logging to part H

src/request_body_processor/multipart.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Multipart::Multipart(std:: string header, Transaction *transaction)
7070

7171
Multipart::~Multipart() {
7272
ms_dbg_a(m_transaction, 4,
73-
"Multipart: Cleanup started (remove files " \
73+
"Multipart: Cleanup started (keep files set to " \
7474
+ RulesProperties::configBooleanString(
7575
m_transaction->m_rules->m_uploadKeepFiles) \
7676
+ ")");
@@ -96,7 +96,7 @@ Multipart::~Multipart() {
9696
+ strerror(errno) + ")");
9797
} else {
9898
ms_dbg_a(m_transaction, 4,
99-
"Multipart: Failed to delete file (part) \"" \
99+
"Multipart: file deleted successfully (part) \"" \
100100
+ m->m_tmp_file_name + "\"");
101101
}
102102

@@ -516,7 +516,7 @@ int Multipart::process_part_data(std::string *error, size_t offset) {
516516

517517
ms_dbg_a(m_transaction, 4,
518518
"Multipart: Created temporary file " \
519-
+ std::to_string(m_nfiles) + " (mode 04o): " \
519+
+ std::to_string(m_nfiles) + " (mode o" + std::to_string(m_transaction->m_rules->m_uploadFileMode.m_value) + "): " \
520520
+ m_mpp->m_tmp_file_name);
521521
}
522522

0 commit comments

Comments
 (0)