]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Fix CONNECT request debugging 11,2 traces
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 2 Sep 2015 14:17:07 +0000 (07:17 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 2 Sep 2015 14:17:07 +0000 (07:17 -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 dbb890407929ce7788ebe41f07e1d91315b466c0..3723ef9f4f4042684998769e0a74b5dc1af3b45a 100644 (file)
@@ -1110,8 +1110,8 @@ tunnelRelayConnectRequest(const Comm::ConnectionPointer &srv, void *data)
     hdr_out.clean();
     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,