aboutsummaryrefslogtreecommitdiff
path: root/src/common/Logging/Log.cpp
diff options
context:
space:
mode:
authorjackpoz <giacomopoz@gmail.com>2017-11-11 20:27:30 +0100
committerShauren <shauren.trinity@gmail.com>2021-02-06 21:41:51 +0100
commit1c2481974177d33f6ebd3679a51b1002654287a6 (patch)
tree6dfbbb3195a6f51a351516e1a1daf1365d6da53a /src/common/Logging/Log.cpp
parenta68ab3241a54d60b283f4898f4002e6e5d7549ab (diff)
Core/Misc: Fix static analysis issues
(cherry picked from commit 97f33dc77945d8f284d14e0eaa994ae1405a3f20)
Diffstat (limited to 'src/common/Logging/Log.cpp')
-rw-r--r--src/common/Logging/Log.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/Logging/Log.cpp b/src/common/Logging/Log.cpp
index c50b0e6c52e..ecc6cbf2b90 100644
--- a/src/common/Logging/Log.cpp
+++ b/src/common/Logging/Log.cpp
@@ -64,7 +64,7 @@ void Log::CreateAppenderFromConfig(std::string const& appenderName)
// Format = type, level, flags, optional1, optional2
// if type = File. optional1 = file and option2 = mode
// if type = Console. optional1 = Color
- std::string options = sConfigMgr->GetStringDefault(appenderName.c_str(), "");
+ std::string options = sConfigMgr->GetStringDefault(appenderName, "");
Tokenizer tokens(options, ',');
auto iter = tokens.begin();
@@ -117,7 +117,7 @@ void Log::CreateLoggerFromConfig(std::string const& appenderName)
LogLevel level = LOG_LEVEL_DISABLED;
uint8 type = uint8(-1);
- std::string options = sConfigMgr->GetStringDefault(appenderName.c_str(), "");
+ std::string options = sConfigMgr->GetStringDefault(appenderName, "");
std::string name = appenderName.substr(7);
if (options.empty())