resolve issue #1361 about peer stats excessive logging (#1365)

pull/1367/head
Jeff 4 years ago committed by GitHub
parent 5765c128ad
commit 10e3d80559
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -80,7 +80,7 @@ namespace llarp
} }
} }
LogInfo("Updating ", staleStats.size(), " stats"); LogDebug("Updating ", staleStats.size(), " stats");
{ {
auto guard = m_storage->transaction_guard(); auto guard = m_storage->transaction_guard();
@ -96,7 +96,7 @@ namespace llarp
auto end = time_now_ms(); auto end = time_now_ms();
auto elapsed = end - start; auto elapsed = end - start;
LogInfo("PeerDb flush took about ", elapsed, " seconds"); LogDebug("PeerDb flush took about ", elapsed, " seconds");
m_lastFlush.store(end); m_lastFlush.store(end);
} }

@ -860,7 +860,7 @@ namespace llarp
if (m_peerDb->shouldFlush(now)) if (m_peerDb->shouldFlush(now))
{ {
LogWarn("Queing database flush..."); LogDebug("Queing database flush...");
QueueDiskIO([this]() { m_peerDb->flushDatabase(); }); QueueDiskIO([this]() { m_peerDb->flushDatabase(); });
} }
} }

Loading…
Cancel
Save