Small fixes in log messages to help debugging

This commit is contained in:
Ervin Hegedus 2019-07-10 15:33:39 +00:00 committed by Felipe Zimmerle
parent b8160cce6b
commit 038522ad9b
No known key found for this signature in database
GPG Key ID: E6DFB08CE8B11277
2 changed files with 5 additions and 3 deletions

View File

@ -1,6 +1,8 @@
v3.0.4 - YYYY-MMM-DD (to be released)
-------------------------------------
- Small fixes in log messages to help debugging the file upload
[Issue #2130 - @airween]
- Fix Cookie header parsing issues
[Issue #2201 - @airween, @martinhsv]
- Fix rules with nolog are logging to part H

View File

@ -70,7 +70,7 @@ Multipart::Multipart(std:: string header, Transaction *transaction)
Multipart::~Multipart() {
ms_dbg_a(m_transaction, 4,
"Multipart: Cleanup started (remove files " \
"Multipart: Cleanup started (keep files set to " \
+ RulesProperties::configBooleanString(
m_transaction->m_rules->m_uploadKeepFiles) \
+ ")");
@ -96,7 +96,7 @@ Multipart::~Multipart() {
+ strerror(errno) + ")");
} else {
ms_dbg_a(m_transaction, 4,
"Multipart: Failed to delete file (part) \"" \
"Multipart: file deleted successfully (part) \"" \
+ m->m_tmp_file_name + "\"");
}
@ -516,7 +516,7 @@ int Multipart::process_part_data(std::string *error, size_t offset) {
ms_dbg_a(m_transaction, 4,
"Multipart: Created temporary file " \
+ std::to_string(m_nfiles) + " (mode 04o): " \
+ std::to_string(m_nfiles) + " (mode o" + std::to_string(m_transaction->m_rules->m_uploadFileMode.m_value) + "): " \
+ m_mpp->m_tmp_file_name);
}