From 5c6f8cea30a0fdaf067b0e0bc228c42ba2a32856 Mon Sep 17 00:00:00 2001 From: agrecascino Date: Wed, 7 Dec 2016 12:46:48 -0500 Subject: [PATCH] Fix verbose logging when using websocket. --- autobahn/wamp_websocketpp_websocket_transport.ipp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autobahn/wamp_websocketpp_websocket_transport.ipp b/autobahn/wamp_websocketpp_websocket_transport.ipp index d42a9f73..813659de 100644 --- a/autobahn/wamp_websocketpp_websocket_transport.ipp +++ b/autobahn/wamp_websocketpp_websocket_transport.ipp @@ -53,6 +53,9 @@ namespace autobahn { m_client.set_close_handler(bind(&wamp_websocketpp_websocket_transport::on_ws_close, this, _1)); m_client.set_fail_handler(bind(&wamp_websocketpp_websocket_transport::on_ws_fail, this, _1)); m_client.set_message_handler(bind(&wamp_websocketpp_websocket_transport::on_ws_message, this, ::_1, ::_2)); + if(!debug_enabled) { + m_client.clear_access_channels(websocketpp::log::alevel::all); + } } template