8000 add debug printing of basic headers · brinkqiang2cpp/websocketpp@d493031 · GitHub
[go: up one dir, main page]

Skip to content

Commit d493031

Browse files
committed
add debug printing of basic headers
1 parent ba805fc commit d493031

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

websocketpp/processors/hybi13.hpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,14 @@ class hybi13 : public processor<config> {
331331
continue;
332332
}
333333

334+
if (base::m_alog->static_test(log::alevel::devel)) {
335+
std::stringstream s;
336+
s << "Received frame basic header: "
337+
<< utility::to_hex(&m_basic_header.b0,1)
338+
<< utility::to_hex(&m_basic_header.b1,1);
339+
base::m_alog->write(log::alevel::devel,s.str());
340+
}
341+
334342
ec = this->validate_incoming_basic_header(
335343
m_basic_header, base::m_server, !m_data_msg.msg_ptr
336344
);
@@ -350,7 +358,7 @@ class hybi13 : public processor<config> {
350358

351359
if (base::m_alog->static_test(log::alevel::devel)) {
352360
std::stringstream s;
353-
s << "Received frame header: "
361+
s << "Received frame full header: "
354362
<< utility::to_hex(&m_basic_header.b0,1)
355363
<< utility::to_hex(&m_basic_header.b1,1)
356364
<< utility::to_hex(m_extended_header.bytes,

0 commit comments

Comments
 (0)
0