Permalink
Browse files

Reduce VSL noise from Debug PROXY_HDR

  • Loading branch information...
nigoroll committed Nov 30, 2017
1 parent 74b614c commit 930f73d6b06e773f90bc4d859771ba974311533a
Showing with 6 additions and 0 deletions.
  1. +5 −0 bin/varnishd/proxy/cache_proxy_proto.c
  2. +1 −0 include/tbl/debug_bits.h
@@ -467,6 +467,11 @@ VPX_Send_Proxy(int fd, int version, const struct sess *sp)
AZ(VSB_finish(vsb));
(void)write(fd, VSB_data(vsb), VSB_len(vsb));
if (! DO_DEBUG(DBG_PROTOCOL)) {
VSB_delete(vsb);
return;
}
vsb2 = VSB_new_auto();
AN(vsb2);
VSB_quote(vsb2, VSB_data(vsb), VSB_len(vsb),
View
@@ -49,6 +49,7 @@ DEBUG_BIT(SLOW_ACCEPTOR, slow_acceptor, "Slow down Acceptor")
DEBUG_BIT(H2_NOCHECK, h2_nocheck, "Disable various H2 checks")
DEBUG_BIT(VMOD_SO_KEEP, vmod_so_keep, "Keep copied VMOD libraries")
DEBUG_BIT(PROCESSORS, processors, "Fetch/Deliver processors")
DEBUG_BIT(PROTOCOL, protocol, "Protocol debugging")
#undef DEBUG_BIT
/*lint -restore */

0 comments on commit 930f73d

Please sign in to comment.