This commit is contained in:
ivanr 2008-09-10 11:34:16 +00:00
parent ec49ce05c7
commit 2f7ff8f7ab

View File

@ -237,7 +237,9 @@ char *get_env_var(request_rec *r, char *name) {
} }
/** /**
* Internal log helper function. Use msr_log instead. * Internal log helper function. Use msr_log instead. This function will
* correctly handle both the messages that have a newline at the end, and
* those that don't.
*/ */
void internal_log(request_rec *r, directory_config *dcfg, modsec_rec *msr, void internal_log(request_rec *r, directory_config *dcfg, modsec_rec *msr,
int level, const char *text, va_list ap) int level, const char *text, va_list ap)
@ -254,7 +256,10 @@ void internal_log(request_rec *r, directory_config *dcfg, modsec_rec *msr,
if ((dcfg->debuglog_fd != NULL)&&(dcfg->debuglog_fd != NOT_SET_P)) { if ((dcfg->debuglog_fd != NULL)&&(dcfg->debuglog_fd != NOT_SET_P)) {
debuglog_fd = dcfg->debuglog_fd; debuglog_fd = dcfg->debuglog_fd;
} }
if (dcfg->debuglog_level != NOT_SET) filter_debug_level = dcfg->debuglog_level;
if (dcfg->debuglog_level != NOT_SET) {
filter_debug_level = dcfg->debuglog_level;
}
} }
/* Return immediately if we don't have where to write /* Return immediately if we don't have where to write