mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-02 00:15:50 +00:00
Reduce TxQ logging severity in several places
This commit is contained in:
committed by
Nik Bougalis
parent
b1c9b134dc
commit
8fa33795a3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user