mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Demote log lines to improve debug log SNR.
The debug logging is verbose and sometimes hard to read. Demote some of the boilerplate output to log level 9, to make it easier to see the important parts on lower verbosity levels.
This commit is contained in:
committed by
Felipe Zimmerle
parent
5c7892ce89
commit
5e06a67fbe
@@ -276,7 +276,7 @@ bool AuditLog::saveIfRelevant(Transaction *transaction, int parts) {
|
||||
if ((m_status == RelevantOnlyAuditLogStatus
|
||||
&& this->isRelevant(transaction->m_httpCodeReturned) == false)
|
||||
&& saveAnyway == false) {
|
||||
transaction->debug(5, "Return code `" +
|
||||
transaction->debug(9, "Return code `" +
|
||||
std::to_string(transaction->m_httpCodeReturned) + "'" \
|
||||
" is not interesting to audit logs, relevant code(s): `" +
|
||||
m_relevant + "'.");
|
||||
|
Reference in New Issue
Block a user