aboutsummaryrefslogtreecommitdiffstats
path: root/src/logging.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-06-07 14:12:59 +0100
committerGravatar Sadie Powell2024-06-07 14:12:59 +0100
commitb918f4906a21d6f37de5c7d503c8da1770df966d (patch)
treecb061bf6249cc9a0ce86fcc646a157edd058db76 /src/logging.cpp
parentMerge branch 'insp4' into master. (diff)
Always use fmtlib directly.
Diffstat (limited to 'src/logging.cpp')
-rw-r--r--src/logging.cpp4
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)));
}