]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: log: Fix %rc comment in sess_build_logline()
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 28 Nov 2023 10:21:40 +0000 (11:21 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 29 Nov 2023 07:59:27 +0000 (08:59 +0100)
%rq was used instead of %rc.

src/log.c

index 96f53bc49378697ec1afaafafe34fd0e0ec920c9..156bf61cb6be8348c5bbb7f3540fe1549f9adb1b 100644 (file)
--- a/src/log.c
+++ b/src/log.c
@@ -3244,7 +3244,7 @@ int sess_build_logline(struct session *sess, struct stream *s, char *dst, size_t
                                last_isspace = 0;
                                break;
 
-                       case LOG_FMT_RETRIES:  // %rq
+                       case LOG_FMT_RETRIES:  // %rc
                                if (s_flags & SF_REDISP)
                                        LOGCHAR('+');
                                ret = ltoa_o((s  ? s->conn_retries : 0), tmplog, dst + maxsize - tmplog);