From dc7b8ee2055759867b2fb3faa1a98a8892cf4837 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 4 Jan 2025 18:31:26 +0200 Subject: [PATCH] Update comment --- src/details/default_err_handler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/details/default_err_handler.cpp b/src/details/default_err_handler.cpp index fb91cf44..1eb39dcb 100644 --- a/src/details/default_err_handler.cpp +++ b/src/details/default_err_handler.cpp @@ -8,7 +8,8 @@ namespace spdlog { namespace details { -// print error to stderr with source location if present +// Prints error to stderr with source location (if available). A stderr sink is not used because reaching +// this point might indicate a problem with the logging system itself so we use fputs() directly. void default_err_handler::handle_ex(const std::string &origin, const source_loc &loc, const std::exception &ex) const { std::lock_guard lk{mutex_}; const auto tm_time = os::localtime();