mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 19:24:29 +03:00
{dis|en}able-filename-logging: Option to disable logging of filename in audit log [Issue #1065 - Marc Stern]
This commit is contained in:
committed by
Felipe Zimmerle
parent
42c819d1b9
commit
c1c91e24cd
@@ -339,6 +339,7 @@ char *format_error_log_message(apr_pool_t *mp, error_message_t *em) {
|
||||
|
||||
if (em == NULL) return NULL;
|
||||
|
||||
#ifndef LOG_NO_FILENAME
|
||||
if (em->file != NULL) {
|
||||
s_file = apr_psprintf(mp, "[file \"%s\"] ",
|
||||
log_escape(mp, (char *)em->file));
|
||||
@@ -349,6 +350,7 @@ char *format_error_log_message(apr_pool_t *mp, error_message_t *em) {
|
||||
s_line = apr_psprintf(mp, "[line %d] ", em->line);
|
||||
if (s_line == NULL) return NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
s_level = apr_psprintf(mp, "[level %d] ", em->level);
|
||||
if (s_level == NULL) return NULL;
|
||||
|
Reference in New Issue
Block a user