]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix CONNECT request debugging 11,2 traces
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 9 Sep 2015 16:32:08 +0000 (09:32 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 9 Sep 2015 16:32:08 +0000 (09:32 -0700)
Using the MemBuf::buf directly is not great, but it does have a properly
terminated c-string in this instance. We cannot use Raw() interface
because that is for output at DBG_DATA levels and will only display the
buffer name as if that was the raw traffic bytes at 11,2.
Which negates the entire purpose of this 11,2 output.

src/tunnel.cc

index 5684e10c1fafac34a66d01d54686823ffe85116d..c75ac6f89e14cbb56b20b2333bd1665a70cff811 100644 (file)
@@ -1099,8 +1099,8 @@ tunnelRelayConnectRequest(const Comm::ConnectionPointer &srv, void *data)
     packerClean(&p);
     mb.append("\r\n", 2);
 
-    debugs(11, 2, "Tunnel Server REQUEST: " << tunnelState->server.conn << ":\n----------\n" <<
-           Raw("tunnelRelayConnectRequest", mb.content(), mb.contentSize()) << "\n----------");
+    debugs(11, 2, "Tunnel Server REQUEST: " << tunnelState->server.conn <<
+           ":\n----------\n" << mb.buf << "\n----------");
 
     AsyncCall::Pointer writeCall = commCbCall(5,5, "tunnelConnectReqWriteDone",
                                    CommIoCbPtrFun(tunnelConnectReqWriteDone,