]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: ssl: Change level of ocsp-update logs
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Wed, 20 Mar 2024 13:13:37 +0000 (14:13 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 20 Mar 2024 15:12:11 +0000 (16:12 +0100)
The pure ocsp-update log used to be in log level "info" and it would be
mixed with actual traffic logs. This patch changes it to level "notice".

doc/configuration.txt
src/ssl_ocsp.c

index 08782370e313d831b040a64089e9195c4895700c..980de0b92f17be36b69e1dddc40a9cec77212a12 100644 (file)
@@ -16095,12 +16095,12 @@ ocsp-update [ off | on ] (crt-list only)
   Here are two examples of such log lines, with a successful OCSP update log
   line first and then an example of an HTTP error with the two different lines
   (lines were spit and the URL was shortened for readability):
-    <134>Mar  6 11:16:53 haproxy[14872]: <OCSP-UPDATE> /path_to_cert/foo.pem 1 \
+    <133>Mar  6 11:16:53 haproxy[14872]: <OCSP-UPDATE> /path_to_cert/foo.pem 1 \
             "Update successful" 0 1
 
-    <134>Mar  6 11:18:55 haproxy[14872]: <OCSP-UPDATE> /path_to_cert/bar.pem 2 \
+    <133>Mar  6 11:18:55 haproxy[14872]: <OCSP-UPDATE> /path_to_cert/bar.pem 2 \
             "HTTP error" 1 0
-    <134>Mar  6 11:18:55 haproxy[14872]: -:- [06/Mar/2023:11:18:52.200] \
+    <133>Mar  6 11:18:55 haproxy[14872]: -:- [06/Mar/2023:11:18:52.200] \
             <OCSP-UPDATE> -/- 2/0/-1/-1/3009 503 217 - - SC-- 0/0/0/0/3 0/0 {} \
             "GET http://127.0.0.1:12345/MEMwQT HTTP/1.1"
 
index 6d68aa3d4337ae6c805e0a4f14323f367d7a9748..e2e1143470c397526f6537d8c518d2b4dcd0c650 100644 (file)
@@ -1130,7 +1130,7 @@ static void ssl_ocsp_send_log()
                status_str = istptr(ocsp_update_errors[ssl_ocsp_task_ctx.update_status]);
        }
 
-       send_log(httpclient_ocsp_update_px, LOG_INFO, "%s %s %u \"%.*s\" %u %u",
+       send_log(httpclient_ocsp_update_px, LOG_NOTICE, "%s %s %u \"%.*s\" %u %u",
                 httpclient_ocsp_update_px->id,
                 ocsp->path,
                 ssl_ocsp_task_ctx.update_status,