diff options
| author | 2024-08-22 10:26:43 +0100 | |
|---|---|---|
| committer | 2024-08-22 11:12:52 +0100 | |
| commit | 6b123d4bc61c2db8e379dd5e681834c4053e661d (patch) | |
| tree | 77621bb30f54b0c444e31a78b2c5c9a67955b723 /src/logging.cpp | |
| parent | Merge branch 'insp4' into master. (diff) | |
Use C++20 <format> instead of fmtlib when available.
Diffstat (limited to 'src/logging.cpp')
| -rw-r--r-- | src/logging.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<ConfigTag>& 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))); } |
