aboutsummaryrefslogtreecommitdiff
path: root/src/zenhttp/clients/asynchttpclient.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenhttp/clients/asynchttpclient.cpp')
-rw-r--r--src/zenhttp/clients/asynchttpclient.cpp2
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());
}
});