From fe22446bdd7527b4ff0c0f849b0fdeb1d394fbc4 Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Fri, 28 Nov 2014 02:12:20 -0800 Subject: [PATCH] Adds missing 'ModSecurity:' prefix to log messages As reported by Walter Hop, the status call functionality was printing a message in the console without the expected 'ModSecurity:' prefix. SecServerSignature was also printing messages without the expected prefix. Both are fixed by this commit. --- apache2/mod_security2.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/apache2/mod_security2.c b/apache2/mod_security2.c index 047fd9f1..fa5e05ec 100644 --- a/apache2/mod_security2.c +++ b/apache2/mod_security2.c @@ -748,7 +748,8 @@ static int hook_post_config(apr_pool_t *mp, apr_pool_t *mp_log, apr_pool_t *mp_t /* If we've changed the server signature make note of the original. */ if (new_server_signature != NULL) { ap_log_error(APLOG_MARK, APLOG_NOTICE | APLOG_NOERRNO, 0, s, - "Original server signature: %s", real_server_signature); + "ModSecurity: Original server signature: %s", + real_server_signature); } #ifndef WIN32 @@ -757,8 +758,8 @@ static int hook_post_config(apr_pool_t *mp, apr_pool_t *mp_log, apr_pool_t *mp_t } else { ap_log_error(APLOG_MARK, APLOG_NOTICE, 0, NULL, - "Status engine is currently disabled, enable it by set " \ - "SecStatusEngine to On."); + "ModSecurity: Status engine is currently disabled, enable " \ + "it by set SecStatusEngine to On."); } #endif