]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
server/util_script.c: tune logging Last-Modified header
authorLuca Toscano <elukey@apache.org>
Sat, 27 Jun 2020 09:11:32 +0000 (09:11 +0000)
committerLuca Toscano <elukey@apache.org>
Sat, 27 Jun 2020 09:11:32 +0000 (09:11 +0000)
Follow up after Joe's feedback in STATUS:
  - If APR_DATE_BAD is returned for Last-Modified, log it at INFO level
    (as opposed to trace).
  - Remove unnecessary guard for APLOGrtrace1(r).

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1879253 13f79535-47bb-0310-9956-ffa450edef68

server/util_script.c

index 97fafc622e4edf085b9616313f7cf8f31d4822ea..34982b1e5d1986774b830e7505d34323d8a16cf9 100644 (file)
@@ -718,9 +718,8 @@ AP_DECLARE(int) ap_scan_script_header_err_core_ex(request_rec *r, char *buffer,
                 }
             }
             else {
-                if (APLOGrtrace1(r))
-                   ap_log_rerror(SCRIPT_LOG_MARK, APLOG_TRACE1, 0, r,
-                                 "Ignored invalid header value: Last-Modified: '%s'", l);
+                ap_log_rerror(SCRIPT_LOG_MARK, APLOG_INFO, 0, r,
+                              "Ignored invalid header value: Last-Modified: '%s'", l);
             }
         }
         else if (!ap_cstr_casecmp(w, "Set-Cookie")) {