CLEANUP: h3: suppress by default stdout traces

H3_DEBUG definition is removed from h3.c similarly to the commit
  d96361b270
  CLEANUP: qpack: suppress by default stdout traces

Also, a plain fprintf in h3_snd_buf has been replaced to be conditional
to the H3_DEBUG definition.

These changes reduces the default output on stdout with QUIC traffic.
This commit is contained in:
Amaury Denoyelle 2022-03-25 15:28:33 +01:00
parent d96361b270
commit d8769d1d87

View File

@ -33,8 +33,6 @@
#include <haproxy/tools.h> #include <haproxy/tools.h>
#include <haproxy/xprt_quic.h> #include <haproxy/xprt_quic.h>
#define DEBUG_H3
#if defined(DEBUG_H3) #if defined(DEBUG_H3)
#define h3_debug_printf fprintf #define h3_debug_printf fprintf
#define h3_debug_hexdump debug_hexdump #define h3_debug_hexdump debug_hexdump
@ -651,7 +649,7 @@ size_t h3_snd_buf(struct conn_stream *cs, struct buffer *buf, size_t count, int
int32_t idx; int32_t idx;
int ret; int ret;
fprintf(stderr, "%s\n", __func__); h3_debug_printf(stderr, "%s\n", __func__);
htx = htx_from_buf(buf); htx = htx_from_buf(buf);