improve logging

This commit is contained in:
ledhed2222
2023-03-21 23:56:59 -04:00
parent 1128729ffc
commit d7d0ac8d29
4 changed files with 9 additions and 9 deletions

View File

@@ -90,7 +90,7 @@ BackendInterface::fetchLedgerObject(
}
else
{
gLog.trace() << "Cache miss - " << ripple::strHex(key);
// gLog.trace() << "Cache miss - " << ripple::strHex(key);
auto dbObj = doFetchLedgerObject(key, sequence, yield);
if (!dbObj)
gLog.trace() << "Missed cache and missed in db";
@@ -145,8 +145,8 @@ BackendInterface::fetchSuccessorKey(
auto succ = cache_.getSuccessor(key, ledgerSequence);
if (succ)
gLog.trace() << "Cache hit - " << ripple::strHex(key);
else
gLog.trace() << "Cache miss - " << ripple::strHex(key);
// else
// gLog.trace() << "Cache miss - " << ripple::strHex(key);
return succ ? succ->key : doFetchSuccessorKey(key, ledgerSequence, yield);
}

View File

@@ -447,7 +447,7 @@ CassandraBackend::writeNFTs(std::vector<NFTsData>&& data)
std::optional<LedgerRange>
CassandraBackend::hardFetchLedgerRange(boost::asio::yield_context& yield) const
{
log_.trace() << "Fetching from cassandra";
// log_.trace() << "Fetching from cassandra";
CassandraStatement statement{selectLedgerRange_};
CassandraResult result = executeAsyncRead(statement, yield);
@@ -826,7 +826,7 @@ CassandraBackend::doFetchSuccessorKey(
std::uint32_t const ledgerSequence,
boost::asio::yield_context& yield) const
{
log_.trace() << "Fetching from cassandra";
// log_.trace() << "Fetching from cassandra";
CassandraStatement statement{selectSuccessor_};
statement.bindNextBytes(key);
statement.bindNextInt(ledgerSequence);
@@ -850,7 +850,7 @@ CassandraBackend::doFetchLedgerObject(
std::uint32_t const sequence,
boost::asio::yield_context& yield) const
{
log_.trace() << "Fetching from cassandra";
// log_.trace() << "Fetching from cassandra";
CassandraStatement statement{selectObject_};
statement.bindNextBytes(key);
statement.bindNextInt(sequence);

View File

@@ -938,7 +938,7 @@ public:
std::optional<int64_t>
getToken(void const* key, boost::asio::yield_context& yield) const
{
log_.trace() << "Fetching from cassandra";
// log_.trace() << "Fetching from cassandra";
CassandraStatement statement{getToken_};
statement.bindNextBytes(key, 32);

View File

@@ -14,7 +14,7 @@ int
maybeWaitAfterWrite(
int justWrote,
int written,
boost::asio::steady_timer & timer)
boost::asio::steady_timer& timer)
{
written = written + justWrote;
if (written > 10000)
@@ -31,7 +31,7 @@ void
doMigration(
Backend::CassandraBackend& backend,
boost::asio::yield_context yield,
boost::asio::steady_timer & timer)
boost::asio::steady_timer& timer)
{
BOOST_LOG_TRIVIAL(info) << "Beginning migration";
/*