mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-28 06:55:50 +00:00
Log websocket received messages
This commit is contained in:
committed by
Vinnie Falco
parent
5663c45a0d
commit
2f3b5f6d0a
@@ -175,8 +175,9 @@ template <class WebSocket>
|
|||||||
void ConnectionImpl <WebSocket>::rcvMessage (
|
void ConnectionImpl <WebSocket>::rcvMessage (
|
||||||
message_ptr const& msg, bool& msgRejected, bool& runQueue)
|
message_ptr const& msg, bool& msgRejected, bool& runQueue)
|
||||||
{
|
{
|
||||||
JLOG (j_.warning)
|
JLOG(j_.debug) <<
|
||||||
<< "WebSocket: rcvMessage";
|
"WebSocket: received " << msg->get_payload();
|
||||||
|
|
||||||
ScopedLockType sl (m_receiveQueueMutex);
|
ScopedLockType sl (m_receiveQueueMutex);
|
||||||
|
|
||||||
if (m_isDead)
|
if (m_isDead)
|
||||||
@@ -354,10 +355,9 @@ void ConnectionImpl <WebSocket>::preDestroy ()
|
|||||||
template <class WebSocket>
|
template <class WebSocket>
|
||||||
void ConnectionImpl <WebSocket>::send (Json::Value const& jvObj, bool broadcast)
|
void ConnectionImpl <WebSocket>::send (Json::Value const& jvObj, bool broadcast)
|
||||||
{
|
{
|
||||||
JLOG (j_.warning)
|
JLOG (j_.debug) <<
|
||||||
<< "WebSocket: sending '" << to_string (jvObj);
|
"WebSocket: sending " << to_string (jvObj);
|
||||||
connection_ptr ptr = m_connection.lock ();
|
connection_ptr ptr = m_connection.lock ();
|
||||||
|
|
||||||
if (ptr)
|
if (ptr)
|
||||||
m_handler.send (ptr, jvObj, broadcast);
|
m_handler.send (ptr, jvObj, broadcast);
|
||||||
}
|
}
|
||||||
@@ -365,8 +365,8 @@ void ConnectionImpl <WebSocket>::send (Json::Value const& jvObj, bool broadcast)
|
|||||||
template <class WebSocket>
|
template <class WebSocket>
|
||||||
void ConnectionImpl <WebSocket>::disconnect ()
|
void ConnectionImpl <WebSocket>::disconnect ()
|
||||||
{
|
{
|
||||||
JLOG (j_.warning)
|
JLOG (j_.debug) <<
|
||||||
<< "WebSocket: disconnecting";
|
"WebSocket: disconnecting";
|
||||||
connection_ptr ptr = m_connection.lock ();
|
connection_ptr ptr = m_connection.lock ();
|
||||||
|
|
||||||
if (ptr)
|
if (ptr)
|
||||||
|
|||||||
Reference in New Issue
Block a user