aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore/gc.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2026-04-17 14:10:02 +0200
committerGitHub Enterprise <[email protected]>2026-04-17 14:10:02 +0200
commitbc17147c11d2e34a287a4e2171484aa3f9e576d4 (patch)
tree84f070b4d21fbf46b68ffd59d5d6215f8c2a8876 /src/zenstore/gc.cpp
parentoperationlogoutput refactor (#967) (diff)
downloadarchived-zen-bc17147c11d2e34a287a4e2171484aa3f9e576d4.tar.xz
archived-zen-bc17147c11d2e34a287a4e2171484aa3f9e576d4.zip
log cleanup (#969)
- Improvement: New `ZEN_SCOPED_LOG(Expr)` macro routes `ZEN_INFO`/`ZEN_WARN`/`ZEN_DEBUG` in the enclosing block through the given logger expression instead of the default - Improvement: `BuildContainer`, `SaveOplog`, and `LoadOplogContext` now take a caller-provided `LoggerRef` so diagnostic messages route through the caller's logger
Diffstat (limited to 'src/zenstore/gc.cpp')
-rw-r--r--src/zenstore/gc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zenstore/gc.cpp b/src/zenstore/gc.cpp
index 40ebb695c..928fc3f08 100644
--- a/src/zenstore/gc.cpp
+++ b/src/zenstore/gc.cpp
@@ -546,7 +546,7 @@ FilterReferences(GcCtx& Ctx, std::string_view Context, std::vector<IoHash>& InOu
return false;
}
- auto Log = [&Ctx]() { return Ctx.Logger; };
+ ZEN_SCOPED_LOG(Ctx.Logger);
const bool Filter = Ctx.Settings.AttachmentRangeMax != IoHash::Max || Ctx.Settings.AttachmentRangeMin != IoHash::Zero;