Permalink
Browse files

Fix verbose logging when using websocket.

  • Loading branch information...
1 parent 97bdc26 commit 5c6f8cea30a0fdaf067b0e0bc228c42ba2a32856 @agrecascino agrecascino committed on GitHub Dec 7, 2016
Showing with 3 additions and 0 deletions.
  1. +3 −0 autobahn/wamp_websocketpp_websocket_transport.ipp
@@ -53,6 +53,9 @@ namespace autobahn {
m_client.set_close_handler(bind(&wamp_websocketpp_websocket_transport<Config>::on_ws_close, this, _1));
m_client.set_fail_handler(bind(&wamp_websocketpp_websocket_transport<Config>::on_ws_fail, this, _1));
m_client.set_message_handler(bind(&wamp_websocketpp_websocket_transport<Config>::on_ws_message, this, ::_1, ::_2));
+ if(!debug_enabled) {
+ m_client.clear_access_channels(websocketpp::log::alevel::all);
+ }
}
template <class Config>

0 comments on commit 5c6f8ce

Please sign in to comment.