aboutsummaryrefslogtreecommitdiff
path: root/src/logging.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-01-23 07:42:07 +0000
committerGravatar Sadie Powell2023-01-23 13:07:53 +0000
commit5c4badf8ea3ba775854f0d26d3f2e0e119584faa (patch)
tree05dd2c5c545f12f71866be6422146477ddd30e3f /src/logging.cpp
parentVendor the fmtlib library. (diff)
Replace InspIRCd::Format with fmt::format.
Diffstat (limited to 'src/logging.cpp')
-rw-r--r--src/logging.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/logging.cpp b/src/logging.cpp
index 13d6d3025..5b1806188 100644
--- a/src/logging.cpp
+++ b/src/logging.cpp
@@ -92,7 +92,7 @@ void Log::FileMethod::OnLog(time_t time, Level level, const std::string& type, c
fflush(file);
if (ferror(file))
- throw CoreException(InspIRCd::Format("Unable to write to %s: %s", name.c_str(), strerror(errno)));
+ throw CoreException(INSP_FORMAT("Unable to write to {}: {}", name, strerror(errno)));
}
bool Log::FileMethod::Tick()
@@ -127,8 +127,8 @@ Log::MethodPtr Log::FileEngine::Create(const std::shared_ptr<ConfigTag>& tag)
auto* fh = fopen(fulltarget.c_str(), "a");
if (!fh)
{
- throw CoreException(InspIRCd::Format("Unable to open %s for file logger at %s: %s",
- fulltarget.c_str(), tag->source.str().c_str(), strerror(errno)));
+ throw CoreException(INSP_FORMAT("Unable to open {} for file logger at {}: {}", fulltarget,
+ tag->source.str(), strerror(errno)));
}
const unsigned long flush = tag->getUInt("flush", 20, 1);