diff options
| author | 2024-06-07 14:12:59 +0100 | |
|---|---|---|
| committer | 2024-06-07 14:12:59 +0100 | |
| commit | b918f4906a21d6f37de5c7d503c8da1770df966d (patch) | |
| tree | cb061bf6249cc9a0ce86fcc646a157edd058db76 /src/logging.cpp | |
| parent | Merge branch 'insp4' into master. (diff) | |
Always use fmtlib directly.
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 3edda5005..c4a686c43 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(INSP_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(INSP_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))); } |
