aboutsummaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-01-23 23:48:09 +0000
committerGravatar Sadie Powell2023-01-24 00:12:57 +0000
commit206d31de85192353d03c74766e80513a87dc49b4 (patch)
tree24fdee802c85c29b66a04901147d019e92e30931 /src/configreader.cpp
parentConvert WriteToSnoMask/WriteGlobalSno to use fmtlib format strings. (diff)
Convert log calls to use fmtlib format strings
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index 937503e5b..0a9256005 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -562,8 +562,8 @@ const std::shared_ptr<ConfigTag>& ServerConfig::ConfValue(const std::string& tag
if (tags.count() > 1)
{
- ServerInstance->Logs.Warning("CONFIG", "Multiple (%zu) <%s> tags found; only the first will be used (first at %s, last at %s)",
- tags.count(), tag.c_str(), tags.begin()->second->source.str().c_str(), std::prev(tags.end())->second->source.str().c_str());
+ ServerInstance->Logs.Warning("CONFIG", "Multiple ({}) <{}> tags found; only the first will be used (first at {}, last at {})",
+ tags.count(), tag, tags.begin()->second->source.str(), std::prev(tags.end())->second->source.str());
}
return tags.begin()->second;
}
@@ -674,8 +674,8 @@ void ConfigReaderThread::OnStop()
}
catch (const CoreException& modex)
{
- ServerInstance->Logs.Error("MODULE", "Unable to read the configuration for %s: %s",
- mod->ModuleSourceFile.c_str(), modex.what());
+ ServerInstance->Logs.Error("MODULE", "Unable to read the configuration for {}: {}",
+ mod->ModuleSourceFile, modex.what());
if (user)
user->WriteNotice(modname + ": " + modex.GetReason());
}