diff options
| author | 2023-01-23 23:48:09 +0000 | |
|---|---|---|
| committer | 2023-01-24 00:12:57 +0000 | |
| commit | 206d31de85192353d03c74766e80513a87dc49b4 (patch) | |
| tree | 24fdee802c85c29b66a04901147d019e92e30931 /src/modules.cpp | |
| parent | Convert WriteToSnoMask/WriteGlobalSno to use fmtlib format strings. (diff) | |
| download | inspircd++-206d31de85192353d03c74766e80513a87dc49b4.tar.gz inspircd++-206d31de85192353d03c74766e80513a87dc49b4.tar.bz2 inspircd++-206d31de85192353d03c74766e80513a87dc49b4.zip | |
Convert log calls to use fmtlib format strings
Diffstat (limited to 'src/modules.cpp')
| -rw-r--r-- | src/modules.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index c391850f5..63e5b6ab1 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -466,7 +466,7 @@ void ModuleManager::DoSafeUnload(Module* mod) Modules.erase(modfind); ServerInstance->GlobalCulls.AddItem(mod); - ServerInstance->Logs.Normal("MODULE", "The %s module was unloaded", mod->ModuleSourceFile.c_str()); + ServerInstance->Logs.Normal("MODULE", "The {} module was unloaded", mod->ModuleSourceFile); } void ModuleManager::UnloadAll() @@ -546,7 +546,7 @@ void ModuleManager::LoadAll() { try { - ServerInstance->Logs.Debug("MODULE", "Initializing %s", modname.c_str()); + ServerInstance->Logs.Debug("MODULE", "Initializing {}", modname); AttachAll(mod); AddServices(servicemap[modname]); mod->init(); @@ -570,7 +570,7 @@ void ModuleManager::LoadAll() { try { - ServerInstance->Logs.Debug("MODULE", "Reading configuration for %s", modname.c_str()); + ServerInstance->Logs.Debug("MODULE", "Reading configuration for {}", modname); mod->ReadConfig(confstatus); } catch (const CoreException& modexcept) @@ -599,8 +599,8 @@ void ModuleManager::AddServices(const ServiceList& list) void ModuleManager::AddService(ServiceProvider& item) { - ServerInstance->Logs.Debug("SERVICE", "Adding %s %s provided by %s", item.name.c_str(), - item.GetTypeString(), item.creator ? item.creator->ModuleSourceFile.c_str() : "the core"); + ServerInstance->Logs.Debug("SERVICE", "Adding {} {} provided by {}", item.name, + item.GetTypeString(), item.creator ? item.creator->ModuleSourceFile : "the core"); switch (item.service) { case SERVICE_DATA: @@ -629,8 +629,8 @@ void ModuleManager::AddService(ServiceProvider& item) void ModuleManager::DelService(ServiceProvider& item) { - ServerInstance->Logs.Debug("SERVICE", "Deleting %s %s provided by %s", item.name.c_str(), - item.GetTypeString(), item.creator ? item.creator->ModuleSourceFile.c_str() : "the core"); + ServerInstance->Logs.Debug("SERVICE", "Deleting {} {} provided by {}", item.name, + item.GetTypeString(), item.creator ? item.creator->ModuleSourceFile : "the core"); switch (item.service) { case SERVICE_MODE: |
