From 3d83e402ca9c76ff81ad852fef93783fbf9e7f66 Mon Sep 17 00:00:00 2001 From: gabime Date: Mon, 6 Jan 2025 07:33:00 +0200 Subject: [PATCH] Fixed source_loc in handle exception in async sync --- src/sinks/async_sink.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sinks/async_sink.cpp b/src/sinks/async_sink.cpp index 6a7f6f99..9c03a12a 100644 --- a/src/sinks/async_sink.cpp +++ b/src/sinks/async_sink.cpp @@ -109,7 +109,7 @@ void async_sink::backend_log_(const details::log_msg &msg) { } catch (const std::exception &ex) { err_helper_.handle_ex("async log", msg.source, ex); } catch (...) { - err_helper_.handle_unknown_ex("async log", source_loc{}); + err_helper_.handle_unknown_ex("async log", msg.source); } } }