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.
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,