mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-10-06 06:16:51 +03:00
Tidy up.
This commit is contained in:
@@ -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,
|
||||
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)) {
|
||||
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
|
||||
|
Reference in New Issue
Block a user