Skip to content

Commit

Permalink
Log outgoing peer messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrippled committed Jan 16, 2024
1 parent e54622c commit 7a85951
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/ripple/overlay/Message.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ class Message : public std::enable_shared_from_this<Message>
* @param in Payload header pointer
* @return Message type
*/
public:
int
getType(std::uint8_t const* in) const;
};
Expand Down
1 change: 1 addition & 0 deletions src/ripple/overlay/impl/PeerImp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ PeerImp::send(std::shared_ptr<Message> const& m)
if (sendq_size != 0)
return;

JLOG(journal_.debug()) << "sending message type " << protocolMessageName(m->getType(&m->getBuffer(Compressed::Off)[0]));
boost::asio::async_write(
stream_,
boost::asio::buffer(
Expand Down
2 changes: 1 addition & 1 deletion src/ripple/protocol/impl/BuildInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ namespace BuildInfo {
// and follow the format described at http://semver.org/
//------------------------------------------------------------------------------
// clang-format off
char const* const versionString = "2.0.0-rc5"
char const* const versionString = "2.0.0-rcX-debugrelay"
// clang-format on

#if defined(DEBUG) || defined(SANITIZER)
Expand Down

0 comments on commit 7a85951

Please sign in to comment.