From 8fa33795a308d4811b3b44e54de5068f1b225331 Mon Sep 17 00:00:00 2001 From: Edward Hennis Date: Wed, 8 Dec 2021 21:57:19 -0500 Subject: [PATCH] Reduce TxQ logging severity in several places --- src/ripple/app/misc/impl/TxQ.cpp | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/ripple/app/misc/impl/TxQ.cpp b/src/ripple/app/misc/impl/TxQ.cpp index 04d06e04fe..196060a5bc 100644 --- a/src/ripple/app/misc/impl/TxQ.cpp +++ b/src/ripple/app/misc/impl/TxQ.cpp @@ -98,12 +98,11 @@ TxQ::FeeMetrics::update( std::sort(feeLevels.begin(), feeLevels.end()); assert(size == feeLevels.size()); - JLOG(j_.debug()) << "Ledger " << view.info().seq << " has " << size - << " transactions. " - << "Ledgers are processing " - << (timeLeap ? "slowly" : "as expected") - << ". Expected transactions is currently " << txnsExpected_ - << " and multiplier is " << escalationMultiplier_; + JLOG((timeLeap ? j_.warn() : j_.debug())) + << "Ledger " << view.info().seq << " has " << size << " transactions. " + << "Ledgers are processing " << (timeLeap ? "slowly" : "as expected") + << ". Expected transactions is currently " << txnsExpected_ + << " and multiplier is " << escalationMultiplier_; if (timeLeap) { @@ -1262,7 +1261,7 @@ TxQ::apply( // valuable, so kick out the cheapest transaction. auto dropRIter = endAccount.transactions.rbegin(); assert(dropRIter->second.account == lastRIter->account); - JLOG(j_.warn()) + JLOG(j_.info()) << "Removing last item of account " << lastRIter->account << " from queue with average fee of " << endEffectiveFeeLevel << " in favor of " << transactionID << " with fee of " @@ -1271,7 +1270,7 @@ TxQ::apply( } else { - JLOG(j_.warn()) + JLOG(j_.info()) << "Queue is full, and transaction " << transactionID << " fee is lower than end item's account average fee"; return {telCAN_NOT_QUEUE_FULL, false}; @@ -1489,7 +1488,7 @@ TxQ::accept(Application& app, OpenView& view) { // Since the failed transaction has a ticket, order // doesn't matter. Drop this one. - JLOG(j_.warn()) + JLOG(j_.info()) << "Queue is nearly full, and transaction " << candidateIter->txID << " failed with " << transToken(txnResult) @@ -1508,7 +1507,7 @@ TxQ::accept(Application& app, OpenView& view) dropRIter->second.account == candidateIter->account); - JLOG(j_.warn()) + JLOG(j_.info()) << "Queue is nearly full, and transaction " << candidateIter->txID << " failed with " << transToken(txnResult)