diff --git a/src/ripple/websocket/Connection.h b/src/ripple/websocket/Connection.h index 3815a8c21a..9147a447b5 100644 --- a/src/ripple/websocket/Connection.h +++ b/src/ripple/websocket/Connection.h @@ -175,8 +175,9 @@ template void ConnectionImpl ::rcvMessage ( message_ptr const& msg, bool& msgRejected, bool& runQueue) { - JLOG (j_.warning) - << "WebSocket: rcvMessage"; + JLOG(j_.debug) << + "WebSocket: received " << msg->get_payload(); + ScopedLockType sl (m_receiveQueueMutex); if (m_isDead) @@ -354,10 +355,9 @@ void ConnectionImpl ::preDestroy () template void ConnectionImpl ::send (Json::Value const& jvObj, bool broadcast) { - JLOG (j_.warning) - << "WebSocket: sending '" << to_string (jvObj); + JLOG (j_.debug) << + "WebSocket: sending " << to_string (jvObj); connection_ptr ptr = m_connection.lock (); - if (ptr) m_handler.send (ptr, jvObj, broadcast); } @@ -365,8 +365,8 @@ void ConnectionImpl ::send (Json::Value const& jvObj, bool broadcast) template void ConnectionImpl ::disconnect () { - JLOG (j_.warning) - << "WebSocket: disconnecting"; + JLOG (j_.debug) << + "WebSocket: disconnecting"; connection_ptr ptr = m_connection.lock (); if (ptr)