From 1d0ed1a2e980b9f44818f049a23b1a55f90cdbab Mon Sep 17 00:00:00 2001 From: Amaury Denoyelle Date: Wed, 22 Mar 2023 11:37:42 +0100 Subject: [PATCH] BUG/MINOR: trace: fix hardcoded level for TRACE_PRINTF Level argument was not ignored by TRACE_PRINTF due to an hardcoded value of TRACE_LEVEL_DEVELOPER inside the macro. This must be backported up to 2.6. --- include/haproxy/trace.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/haproxy/trace.h b/include/haproxy/trace.h index bf9885df3..ad6995774 100644 --- a/include/haproxy/trace.h +++ b/include/haproxy/trace.h @@ -134,7 +134,7 @@ _msg_len = snprintf(_msg, sizeof(_msg), (fmt), ##args); \ if (_msg_len >= sizeof(_msg)) \ _msg_len = sizeof(_msg) - 1; \ - _trace(TRACE_LEVEL_DEVELOPER, (mask), TRACE_SOURCE, \ + _trace((level), (mask), TRACE_SOURCE, \ trc_loc, func, a1, a2, a3, a4, \ &trace_no_cb, ist2(_msg, _msg_len)); \ } \