]> granicus.if.org Git - apache/commitdiff
Tone down the logging levels for these two messages from ERROR to NOTICE.
authorJustin Erenkrantz <jerenkrantz@apache.org>
Wed, 6 Feb 2002 02:29:54 +0000 (02:29 +0000)
committerJustin Erenkrantz <jerenkrantz@apache.org>
Wed, 6 Feb 2002 02:29:54 +0000 (02:29 +0000)
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

server/protocol.c

index d0e1ae26f4f24d3756339aff288f456df76fe182..6fe19668db5ea714bcf0e9c4d63de8804a4befe4 100644 (file)
@@ -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;
         }