mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 13:56:01 +03:00
Small fixes in log messages to help debugging
This commit is contained in:
parent
b8160cce6b
commit
038522ad9b
2
CHANGES
2
CHANGES
@ -1,6 +1,8 @@
|
|||||||
v3.0.4 - YYYY-MMM-DD (to be released)
|
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
|
- Fix Cookie header parsing issues
|
||||||
[Issue #2201 - @airween, @martinhsv]
|
[Issue #2201 - @airween, @martinhsv]
|
||||||
- Fix rules with nolog are logging to part H
|
- Fix rules with nolog are logging to part H
|
||||||
|
@ -70,7 +70,7 @@ Multipart::Multipart(std:: string header, Transaction *transaction)
|
|||||||
|
|
||||||
Multipart::~Multipart() {
|
Multipart::~Multipart() {
|
||||||
ms_dbg_a(m_transaction, 4,
|
ms_dbg_a(m_transaction, 4,
|
||||||
"Multipart: Cleanup started (remove files " \
|
"Multipart: Cleanup started (keep files set to " \
|
||||||
+ RulesProperties::configBooleanString(
|
+ RulesProperties::configBooleanString(
|
||||||
m_transaction->m_rules->m_uploadKeepFiles) \
|
m_transaction->m_rules->m_uploadKeepFiles) \
|
||||||
+ ")");
|
+ ")");
|
||||||
@ -96,7 +96,7 @@ Multipart::~Multipart() {
|
|||||||
+ strerror(errno) + ")");
|
+ strerror(errno) + ")");
|
||||||
} else {
|
} else {
|
||||||
ms_dbg_a(m_transaction, 4,
|
ms_dbg_a(m_transaction, 4,
|
||||||
"Multipart: Failed to delete file (part) \"" \
|
"Multipart: file deleted successfully (part) \"" \
|
||||||
+ m->m_tmp_file_name + "\"");
|
+ 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,
|
ms_dbg_a(m_transaction, 4,
|
||||||
"Multipart: Created temporary file " \
|
"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);
|
+ m_mpp->m_tmp_file_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user