Commit ced507a0 authored by gejun's avatar gejun

Print body as binary

parent 27a3cd51
...@@ -456,7 +456,7 @@ ssize_t HttpMessage::ParseFromIOBuf(const butil::IOBuf &buf) { ...@@ -456,7 +456,7 @@ ssize_t HttpMessage::ParseFromIOBuf(const butil::IOBuf &buf) {
if (_parser.http_errno != 0) { if (_parser.http_errno != 0) {
// May try HTTP on other formats, failure is norm. // May try HTTP on other formats, failure is norm.
RPC_VLOG << "Fail to parse http message, parser=" << _parser RPC_VLOG << "Fail to parse http message, parser=" << _parser
<< ", buf=`" << buf << '\''; << ", buf=`" << butil::PrintedAsBinary(buf) << '\'';
return -1; return -1;
} }
if (Completed()) { if (Completed()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment