mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 01:08:35 +00:00
chore(Core/Logging): replace most server loggers (#5726)
* chore(Core/Logging): replace most server loggers Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com>
This commit is contained in:
@@ -60,7 +60,7 @@ namespace
|
||||
{
|
||||
if (!replace)
|
||||
{
|
||||
LOG_ERROR("server", "> Config: Option '%s' is exist! Option key - '%s'", optionName.c_str(), itr->second.c_str());
|
||||
LOG_ERROR("server.loading", "> Config: Option '%s' is exist! Option key - '%s'", optionName.c_str(), itr->second.c_str());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -213,7 +213,7 @@ T ConfigMgr::GetValueDefault(std::string const& name, T const& def, bool showLog
|
||||
{
|
||||
if (showLogs)
|
||||
{
|
||||
LOG_ERROR("server", "> Config: Missing name %s in config, add \"%s = %s\"",
|
||||
LOG_ERROR("server.loading", "> Config: Missing name %s in config, add \"%s = %s\"",
|
||||
name.c_str(), name.c_str(), Acore::ToString(def).c_str());
|
||||
}
|
||||
|
||||
@@ -225,7 +225,7 @@ T ConfigMgr::GetValueDefault(std::string const& name, T const& def, bool showLog
|
||||
{
|
||||
if (showLogs)
|
||||
{
|
||||
LOG_ERROR("server", "> Config: Bad value defined for name '%s', going to use '%s' instead",
|
||||
LOG_ERROR("server.loading", "> Config: Bad value defined for name '%s', going to use '%s' instead",
|
||||
name.c_str(), Acore::ToString(def).c_str());
|
||||
}
|
||||
|
||||
@@ -243,7 +243,7 @@ std::string ConfigMgr::GetValueDefault<std::string>(std::string const& name, std
|
||||
{
|
||||
if (showLogs)
|
||||
{
|
||||
LOG_ERROR("server", "> Config: Missing name %s in config, add \"%s = %s\"",
|
||||
LOG_ERROR("server.loading", "> Config: Missing name %s in config, add \"%s = %s\"",
|
||||
name.c_str(), name.c_str(), def.c_str());
|
||||
}
|
||||
|
||||
@@ -269,7 +269,7 @@ bool ConfigMgr::GetOption<bool>(std::string const& name, bool const& def, bool s
|
||||
{
|
||||
if (showLogs)
|
||||
{
|
||||
LOG_ERROR("server", "> Config: Bad value defined for name '%s', going to use '%s' instead",
|
||||
LOG_ERROR("server.loading", "> Config: Bad value defined for name '%s', going to use '%s' instead",
|
||||
name.c_str(), def ? "true" : "false");
|
||||
}
|
||||
|
||||
@@ -379,13 +379,13 @@ bool ConfigMgr::LoadModulesConfigs()
|
||||
void ConfigMgr::PrintLoadedModulesConfigs()
|
||||
{
|
||||
// Print modules configurations
|
||||
LOG_INFO("server", " ");
|
||||
LOG_INFO("server", "Using modules configuration:");
|
||||
LOG_INFO("server.loading", " ");
|
||||
LOG_INFO("server.loading", "Using modules configuration:");
|
||||
|
||||
for (auto const& itr : _moduleConfigFiles)
|
||||
LOG_INFO("server", "> %s", itr.c_str());
|
||||
LOG_INFO("server.loading", "> %s", itr.c_str());
|
||||
|
||||
LOG_INFO("server", " ");
|
||||
LOG_INFO("server.loading", " ");
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user