Search
j0ke.net Open Build Service
>
Projects
>
home:jg
:
http-testing
>
tortix-waf
> modsecurity-2.6.4-collections-logging.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File modsecurity-2.6.4-collections-logging.patch of Package tortix-waf
diff -ru modsecurity-apache_2.6.4-orig/apache2/persist_dbm.c modsecurity-apache_2.6.4/apache2/persist_dbm.c --- modsecurity-apache_2.6.4-orig/apache2/persist_dbm.c 2012-03-08 19:20:41.000000000 -0500 +++ modsecurity-apache_2.6.4/apache2/persist_dbm.c 2012-03-12 15:20:23.000000000 -0400 @@ -110,8 +110,10 @@ dbm_filename = apr_pstrcat(msr->mp, msr->txcfg->data_dir, "/", col_name, NULL); - msr_log(msr, 1, "collection_retrieve_ex: Retrieving collection (name \"%s\", filename \"%s\")",log_escape(msr->mp, col_name), + if (msr->txcfg->debuglog_level >= 9) { + msr_log(msr, 9, "collection_retrieve_ex: Retrieving collection (name \"%s\", filename \"%s\")",log_escape(msr->mp, col_name), log_escape(msr->mp, dbm_filename)); + } key.dptr = (char *)col_key; key.dsize = col_key_len + 1; @@ -587,8 +589,10 @@ else dbm_filename = apr_pstrcat(msr->mp, msr->txcfg->data_dir, "/", col_name, NULL); - msr_log(msr, 1, "collections_remove_stale: Retrieving collection (name \"%s\", filename \"%s\")",log_escape(msr->mp, col_name), - log_escape(msr->mp, dbm_filename)); + + if (msr->txcfg->debuglog_level >= 9) { + msr_log(msr, 9, "collections_remove_stale: Retrieving collection (name \"%s\", filename \"%s\")",log_escape(msr->mp, col_name), log_escape(msr->mp, dbm_filename)); + } rc = apr_sdbm_open(&dbm, dbm_filename, APR_CREATE | APR_WRITE | APR_SHARELOCK, CREATEMODE, msr->mp); Only in modsecurity-apache_2.6.4/apache2: .persist_dbm.c.swp