From 4577ad60c73a7ff4bdd6f976253014130a1f05ea Mon Sep 17 00:00:00 2001 From: Vinnie Falco Date: Tue, 19 Nov 2013 13:21:10 -0800 Subject: [PATCH] Fix ResourceManager log output --- src/ripple/resource/impl/Logic.h | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/src/ripple/resource/impl/Logic.h b/src/ripple/resource/impl/Logic.h index 3a91bfaef..760f3afd1 100644 --- a/src/ripple/resource/impl/Logic.h +++ b/src/ripple/resource/impl/Logic.h @@ -103,7 +103,8 @@ public: } } - m_journal.debug << "New inbound endpoint " << entry; + m_journal.debug << + "New inbound endpoint " << *entry; return Consumer (*this, *entry); } @@ -135,7 +136,8 @@ public: } } - m_journal.debug << "New outbound endpoint " << entry; + m_journal.debug << + "New outbound endpoint " << *entry; return Consumer (*this, *entry); } @@ -164,7 +166,8 @@ public: } } - m_journal.debug << "New admin endpoint " << entry; + m_journal.debug << + "New admin endpoint " << *entry; return Consumer (*this, *entry); } @@ -415,7 +418,9 @@ public: { if (--entry.refcount == 0) { - m_journal.debug << "Inactive " << entry; + m_journal.debug << + "Inactive " << entry; + switch (entry.key->kind) { case kindInbound: @@ -452,7 +457,8 @@ public: { DiscreteTime const now (m_clock()); int const balance (entry.add (fee.cost(), now)); - m_journal.info << "Charging " << entry << " for " << fee; + m_journal.info << + "Charging " << entry << " for " << fee; return disposition (balance); } @@ -468,7 +474,8 @@ public: } if (notify) - m_journal.info << "Load warning: " << entry; + m_journal.info << + "Load warning: " << entry; return notify; }