mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-29 23:45:51 +00:00
Fix LedgerMaster for new log routines
This commit is contained in:
@@ -19,7 +19,7 @@ int LedgerMaster::getValidatedLedgerAge()
|
||||
{
|
||||
if (!mValidLedger)
|
||||
{
|
||||
cLog(lsDEBUG) << "No validated ledger";
|
||||
WriteLog (lsDEBUG, LedgerMaster) << "No validated ledger";
|
||||
return 999999;
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ int LedgerMaster::getValidatedLedgerAge()
|
||||
ret -= static_cast<int64>(mValidLedger->getCloseTimeNC());
|
||||
ret = std::max(0LL, ret);
|
||||
|
||||
cLog(lsTRACE) << "Validated ledger age is " << ret;
|
||||
WriteLog (lsTRACE, LedgerMaster) << "Validated ledger age is " << ret;
|
||||
return static_cast<int>(ret);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user