Option to disable logging of "Server" in audit log when log level < 9. [Issue #1070 - Marc Stern]

This commit is contained in:
Marc Stern
2017-04-10 15:03:09 +02:00
committed by Felipe Zimmerle
parent c1c91e24cd
commit 9244cd9824
3 changed files with 22 additions and 1 deletions

View File

@@ -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));