diag: Disable frame_header/payload logs in ws client
They're useless noise. Worse than that, the messages are byte strings that cause text searches to omit matches (via grep, less, etc.).
This commit is contained in:
1 parent
cf55e4bc1d
commit
f146859677
1 file changed
+3
-1
@@ -166,7 +166,9 @@ struct WebsocketClient::PImpl {
|
||||
client.get_alog().set_name(this->config.name);
|
||||
client.get_elog().set_name(this->config.name);
|
||||
client.set_access_channels(websocketpp::log::alevel::all);
|
||||
// client.clear_access_channels(websocketpp::log::alevel::frame_payload);
|
||||
client.clear_access_channels(
|
||||
websocketpp::log::alevel::frame_header |
|
||||
websocketpp::log::alevel::frame_payload);
|
||||
client.set_error_channels(websocketpp::log::elevel::all);
|
||||
if (io_context == nullptr) {
|
||||
client.init_asio();
|
||||
|
||||
Reference in new issue
Block a user