diff --git a/src/ripple/overlay/impl/PeerImp.cpp b/src/ripple/overlay/impl/PeerImp.cpp index 80eeba11895..72b48e9a202 100644 --- a/src/ripple/overlay/impl/PeerImp.cpp +++ b/src/ripple/overlay/impl/PeerImp.cpp @@ -1009,8 +1009,8 @@ PeerImp::onMessageBegin( std::size_t uncompressed_size, bool isCompressed) { - load_event_ = - app_.getJobQueue().makeLoadEvent(jtPEER, protocolMessageName(type)); + auto const type_name = protocolMessageName(type); + load_event_ = app_.getJobQueue().makeLoadEvent(jtPEER, type_name); fee_ = Resource::feeLightPeer; auto const category = TrafficCount::categorize(*m, type, true); overlay_.reportTraffic(category, true, static_cast(size)); @@ -1031,8 +1031,9 @@ PeerImp::onMessageBegin( overlay_.addTxMetrics( static_cast(type), static_cast(size)); } - JLOG(journal_.trace()) << "onMessageBegin: " << type << " " << size << " " - << uncompressed_size << " " << isCompressed; + JLOG(journal_.debug()) << "onMessageBegin: " << type_name << "(" << type + << ") " << size << " " << uncompressed_size << " " + << isCompressed; } void