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/filecas.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/filecas.cpp')
| -rw-r--r-- | zenstore/filecas.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/zenstore/filecas.cpp b/zenstore/filecas.cpp index 1b53c405b..1d3542f62 100644 --- a/zenstore/filecas.cpp +++ b/zenstore/filecas.cpp @@ -847,7 +847,7 @@ FileCasStrategy::CollectGarbage(GcContext& GcCtx) { ZEN_ASSERT(m_IsInitialized); - ZEN_INFO("collecting garbage from {}", m_RootDirectory); + ZEN_DEBUG("collecting garbage from {}", m_RootDirectory); std::vector<IoHash> ChunksToDelete; std::atomic<uint64_t> ChunksToDeleteBytes{0}; @@ -861,13 +861,13 @@ FileCasStrategy::CollectGarbage(GcContext& GcCtx) Stopwatch TotalTimer; const auto _ = MakeGuard([&] { - ZEN_INFO("garbage collect for '{}' DONE after {}, deleted {} out of {} files, removed {} out of {}", - m_RootDirectory, - NiceTimeSpanMs(TotalTimer.GetElapsedTimeMs()), - DeletedCount, - ChunkCount, - NiceBytes(OldTotalSize - m_TotalSize.load(std::memory_order::relaxed)), - NiceBytes(OldTotalSize)); + ZEN_DEBUG("garbage collect for '{}' DONE after {}, deleted {} out of {} files, removed {} out of {}", + m_RootDirectory, + NiceTimeSpanMs(TotalTimer.GetElapsedTimeMs()), + DeletedCount, + ChunkCount, + NiceBytes(OldTotalSize - m_TotalSize.load(std::memory_order::relaxed)), + NiceBytes(OldTotalSize)); }); IterateChunks([&](const IoHash& Hash, BasicFile& Payload) { @@ -900,15 +900,15 @@ FileCasStrategy::CollectGarbage(GcContext& GcCtx) if (ChunksToDelete.empty()) { - ZEN_INFO("gc for '{}' SKIPPED, nothing to delete", m_RootDirectory); + ZEN_DEBUG("gc for '{}' SKIPPED, nothing to delete", m_RootDirectory); return; } - ZEN_INFO("deleting file CAS garbage for '{}': {} out of {} chunks ({})", - m_RootDirectory, - ChunksToDelete.size(), - ChunkCount.load(), - NiceBytes(ChunksToDeleteBytes)); + ZEN_DEBUG("deleting file CAS garbage for '{}': {} out of {} chunks ({})", + m_RootDirectory, + ChunksToDelete.size(), + ChunkCount.load(), + NiceBytes(ChunksToDeleteBytes)); if (GcCtx.IsDeletionMode() == false) { |