diff options
| author | Dan Engelbrecht <[email protected]> | 2026-04-17 14:10:02 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2026-04-17 14:10:02 +0200 |
| commit | bc17147c11d2e34a287a4e2171484aa3f9e576d4 (patch) | |
| tree | 84f070b4d21fbf46b68ffd59d5d6215f8c2a8876 /src/zenhttp/clients/asynchttpclient.cpp | |
| parent | operationlogoutput refactor (#967) (diff) | |
| download | archived-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/zenhttp/clients/asynchttpclient.cpp')
| -rw-r--r-- | src/zenhttp/clients/asynchttpclient.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zenhttp/clients/asynchttpclient.cpp b/src/zenhttp/clients/asynchttpclient.cpp index 4b189af36..ea88fc783 100644 --- a/src/zenhttp/clients/asynchttpclient.cpp +++ b/src/zenhttp/clients/asynchttpclient.cpp @@ -599,7 +599,7 @@ struct AsyncHttpClient::Impl } catch (const std::exception& Ex) { - auto Log = [&]() -> LoggerRef { return LogRef; }; + ZEN_SCOPED_LOG(LogRef); ZEN_ERROR("AsyncHttpClient: unhandled exception in completion callback: {}", Ex.what()); } }); |