summaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2013-04-28 11:52:08 +0200
committerErik Schilling <ablu.erikschilling@googlemail.com>2013-05-02 21:45:54 +0200
commit0261eb73e5588f5732aef5df753311d488c45d06 (patch)
treed641b0cad81ea58b8d8680b002197a4f592ef4a9 /src/utils
parent23ccc8080a5283adce9f06909fc89b63d0e25452 (diff)
downloadmanaserv-0261eb73e5588f5732aef5df753311d488c45d06.tar.gz
manaserv-0261eb73e5588f5732aef5df753311d488c45d06.tar.xz
manaserv-0261eb73e5588f5732aef5df753311d488c45d06.zip
Fixed a bunch of cppcheck warnings
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/logger.cpp30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/utils/logger.cpp b/src/utils/logger.cpp
index 8a07057..50b0d4c 100644
--- a/src/utils/logger.cpp
+++ b/src/utils/logger.cpp
@@ -138,23 +138,23 @@ void Logger::setLogFile(const std::string &logFile, bool append)
void Logger::output(const std::string &msg, Level atVerbosity)
{
- static const char *prefixes[] =
- {
-#ifdef T_COL_LOG
- "[\033[45mFTL\033[0m]",
- "[\033[41mERR\033[0m]",
- "[\033[43mWRN\033[0m]",
-#else
- "[FTL]",
- "[ERR]",
- "[WRN]",
-#endif
- "[INF]",
- "[DBG]"
- };
-
if (mVerbosity >= atVerbosity)
{
+ static const char *prefixes[] =
+ {
+ #ifdef T_COL_LOG
+ "[\033[45mFTL\033[0m]",
+ "[\033[41mERR\033[0m]",
+ "[\033[43mWRN\033[0m]",
+ #else
+ "[FTL]",
+ "[ERR]",
+ "[WRN]",
+ #endif
+ "[INF]",
+ "[DBG]"
+ };
+
bool open = mLogFile.is_open();
if (open)