From 6b123d4bc61c2db8e379dd5e681834c4053e661d Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 22 Aug 2024 10:26:43 +0100 Subject: Use C++20 instead of fmtlib when available. --- src/logging.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/logging.cpp') diff --git a/src/logging.cpp b/src/logging.cpp index 62783b5af..649396513 100644 --- a/src/logging.cpp +++ b/src/logging.cpp @@ -110,7 +110,7 @@ void Log::FileMethod::OnLog(time_t time, Level level, const std::string& type, c fflush(file); if (ferror(file)) - throw CoreException(fmt::format("Unable to write to {}: {}", name, strerror(errno))); + throw CoreException(FMT::format("Unable to write to {}: {}", name, strerror(errno))); } bool Log::FileMethod::Tick() @@ -145,7 +145,7 @@ Log::MethodPtr Log::FileEngine::Create(const std::shared_ptr& tag) auto* fh = fopen(fulltarget.c_str(), "a"); if (!fh) { - throw CoreException(fmt::format("Unable to open {} for file logger at {}: {}", fulltarget, + throw CoreException(FMT::format("Unable to open {} for file logger at {}: {}", fulltarget, tag->source.str(), strerror(errno))); } -- cgit v1.3.1-10-gc9f91