From: Justin Erenkrantz Date: Wed, 6 Feb 2002 02:29:54 +0000 (+0000) Subject: Tone down the logging levels for these two messages from ERROR to NOTICE. X-Git-Tag: 2.0.32~62 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=68f36d57cdb70bfa742636e4a2a8b4ad7fdd2a97;p=thirdparty%2Fapache%2Fhttpd.git Tone down the logging levels for these two messages from ERROR to NOTICE. It's something to note, but it isn't an error worthy of logging by default. (Also always log any status values in read_request_line() - incl. timeouts.) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93271 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/server/protocol.c b/server/protocol.c index d0e1ae26f4f..6fe19668db5 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -597,13 +597,7 @@ static int read_request_line(request_rec *r) &len, r, 0); if (rv != APR_SUCCESS) { - /* We could get TIMEUP, EOF, or CONNRESET on socket timeouts, - * so those are common errors that we don't want to log. - */ - if (!APR_STATUS_IS_TIMEUP(rv) && !APR_STATUS_IS_EOF(rv) && - !APR_STATUS_IS_ECONNRESET(rv)) { - ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, "read_request_line() failed"); - } + ap_log_rerror(APLOG_MARK, APLOG_NOTICE, rv, r, "read_request_line() failed"); r->request_time = apr_time_now(); return 0; } @@ -710,7 +704,7 @@ static void get_mime_headers(request_rec *r) } if (rv != APR_SUCCESS) { - ap_log_rerror(APLOG_MARK, APLOG_ERR, rv, r, "get_mime_headers() failed"); + ap_log_rerror(APLOG_MARK, APLOG_NOTICE, rv, r, "get_mime_headers() failed"); return; }