diff options
author | Kargatum <dowlandtop@yandex.com> | 2021-06-21 08:07:12 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-21 03:07:12 +0200 |
commit | 5787d00d545aaf4139f84f3e207c3b69b5b4231f (patch) | |
tree | 3cf485002afad54439c4632ccf7fbfe6cc9d497d /src/common/Configuration/Config.cpp | |
parent | 9f80a592bbd42098a17f6fb0b4f724fbe0d8b90e (diff) |
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>
Diffstat (limited to 'src/common/Configuration/Config.cpp')
-rw-r--r-- | src/common/Configuration/Config.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/common/Configuration/Config.cpp b/src/common/Configuration/Config.cpp index d24e082190..5899f74ff5 100644 --- a/src/common/Configuration/Config.cpp +++ b/src/common/Configuration/Config.cpp @@ -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", " "); } /* |