mirror of
https://github.com/XRPLF/clio.git
synced 2026-02-03 13:35:26 +00:00
improve logging
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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";
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user