if (((level & APLOG_LEVELMASK) != APLOG_NOTICE) &&
((level & APLOG_LEVELMASK) > DEFAULT_LOGLEVEL))
return;
- apr_open_stderr(&logf, NULL);
+ apr_open_stderr(&logf, pool);
}
else if (s->error_log) {
/*
* that may screw up scripts written to do something
* based on the last modification time of the pid file.
*/
- ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_WARNING, 0, NULL,
+ ap_log_perror(APLOG_MARK, APLOG_NOERRNO|APLOG_WARNING, 0, p,
apr_psprintf(p,
"pid file %s overwritten -- Unclean shutdown of previous Apache run?",
fname)