diff options
| author | Dan Engelbrecht <[email protected]> | 2022-12-02 16:37:22 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-12-02 07:37:22 -0800 |
| commit | a07d68c0aea6cddd966986ad45045087e1cebfea (patch) | |
| tree | a856aadb1c0a09f0da8557e734beaee0a4609ff9 /zenstore/blockstore.cpp | |
| parent | Make sure we always store record/op before attachments (#195) (diff) | |
| download | zen-a07d68c0aea6cddd966986ad45045087e1cebfea.tar.xz zen-a07d68c0aea6cddd966986ad45045087e1cebfea.zip | |
reduce gc log spam (INFO -> DEBUG) (#199)
Diffstat (limited to 'zenstore/blockstore.cpp')
| -rw-r--r-- | zenstore/blockstore.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/zenstore/blockstore.cpp b/zenstore/blockstore.cpp index c8bf482fa..5d81d1120 100644 --- a/zenstore/blockstore.cpp +++ b/zenstore/blockstore.cpp @@ -168,7 +168,7 @@ BlockStore::Initialize(const std::filesystem::path& BlocksBasePath, { // Log removing unreferenced block // Clear out unused blocks - ZEN_INFO("removing unused block at '{}'", Path); + ZEN_DEBUG("removing unused block at '{}'", Path); std::error_code Ec; std::filesystem::remove(Path, Ec); if (Ec) @@ -334,7 +334,7 @@ BlockStore::ReclaimSpace(const ReclaimSnapshotState& Snapshot, Stopwatch TotalTimer; const auto _ = MakeGuard([&] { - ZEN_INFO( + ZEN_DEBUG( "reclaim space for '{}' DONE after {}, write lock: {} ({}), read lock: {} ({}), collected {} bytes, deleted #{} and moved " "#{} " "of #{} " @@ -424,12 +424,12 @@ BlockStore::ReclaimSpace(const ReclaimSnapshotState& Snapshot, if (DryRun) { - ZEN_INFO("garbage collect for '{}' DISABLED, found #{} {} chunks of total #{} {}", - m_BlocksBasePath, - DeleteCount, - NiceBytes(OldTotalSize - NewTotalSize), - TotalChunkCount, - OldTotalSize); + ZEN_DEBUG("garbage collect for '{}' DISABLED, found #{} {} chunks of total #{} {}", + m_BlocksBasePath, + DeleteCount, + NiceBytes(OldTotalSize - NewTotalSize), + TotalChunkCount, + OldTotalSize); return; } |