mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
Option to disable logging of "Server" in audit log when log level < 9. [Issue #1070 - Marc Stern]
This commit is contained in:
committed by
Felipe Zimmerle
parent
c1c91e24cd
commit
9244cd9824
@@ -2004,6 +2004,9 @@ void sec_audit_logger_native(modsec_rec *msr) {
|
||||
sec_auditlog_write_producer_header(msr);
|
||||
|
||||
/* Server */
|
||||
#ifdef LOG_NO_SERVER
|
||||
if (msr->txcfg->debuglog_level >= 9)
|
||||
#endif
|
||||
if (msr->server_software != NULL) {
|
||||
text = apr_psprintf(msr->mp, "Server: %s\n", msr->server_software);
|
||||
sec_auditlog_write(msr, text, strlen(text));
|
||||
|
Reference in New Issue
Block a user