Downgraded 'Connection reset by peer' from ERROR to NOTICE, as it has nothing to do with us.

This commit is contained in:
ivanr 2007-02-22 12:14:10 +00:00
Родитель b57a1f0246
Коммит f9999c440c
2 изменённых файлов: 18 добавлений и 2 удалений

Просмотреть файл

@ -2,6 +2,10 @@
22 Feb 2006 - 2.1.0-rc7+
------------------------
* Removed the "Connection reset by peer" message, which has nothing
to do with us. Actually the message was downgraded from ERROR to
NOTICE so it will still appear in the debug log.
* Removed the (harmless) message mentioning LAST_UPDATE_TIME missing.
* It was not possible to remove a rule placed in phase 4 using

Просмотреть файл

@ -569,8 +569,20 @@ apr_status_t output_filter(ap_filter_t *f, apr_bucket_brigade *bb_in) {
rc = ap_pass_brigade(f->next, msr->of_brigade);
if (rc != APR_SUCCESS) {
msr_log(msr, 1, "Output filter: Error while forwarding response data (%i): %s",
rc, get_apr_error(msr->mp, rc));
int log_level = 1;
if (APR_STATUS_IS_ECONNRESET(rc)) {
/* Message "Connection reset by peer" is common and not a sign
* of something unusual. Hence we don't want to make a big deal
* about it, logging at NOTICE level. Everything else we log
* at ERROR level.
*/
log_level = 3;
}
msr_log(msr, log_level, "Output filter: Error while forwarding response data (%i): %s",
rc, get_apr_error(msr->mp, rc));
return rc;
}
}