diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-11-01 12:37:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-11-01 21:33:36 +0300 |
commit | a1ca5e04b60902f84eb5da7d5e212ecf66d7f3e6 (patch) | |
tree | 2483f96259d864a8c356ba2d6d97b311d2ca7c95 | |
parent | 8cb95434b0c050a5e608e3fc541636d5b2d08dfd (diff) | |
download | manaverse-a1ca5e04b60902f84eb5da7d5e212ecf66d7f3e6.tar.gz manaverse-a1ca5e04b60902f84eb5da7d5e212ecf66d7f3e6.tar.bz2 manaverse-a1ca5e04b60902f84eb5da7d5e212ecf66d7f3e6.tar.xz manaverse-a1ca5e04b60902f84eb5da7d5e212ecf66d7f3e6.zip |
in logger put debug logging in ifdef.
-rw-r--r-- | src/logger.cpp | 4 | ||||
-rw-r--r-- | src/logger.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/logger.cpp b/src/logger.cpp index 12a51070d..a177b895e 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -25,7 +25,9 @@ #include <iostream> #include <sstream> +#ifdef ENABLEDEBUGLOG #include "gui/widgets/tabs/chattab.h" +#endif #ifdef WIN32 #include <windows.h> @@ -95,6 +97,7 @@ void Logger::log(const std::string &str) log("%s", str.c_str()); } +#ifdef ENABLEDEBUGLOG void Logger::dlog(const std::string &str) { if (!mDebugLog) @@ -118,6 +121,7 @@ void Logger::dlog(const std::string &str) if (mChatWindow && debugChatTab) debugChatTab->chatLog(str, BY_LOGGER); } +#endif void Logger::log1(const char *const buf) { diff --git a/src/logger.h b/src/logger.h index 8b484e8f5..90c3a689f 100644 --- a/src/logger.h +++ b/src/logger.h @@ -94,10 +94,12 @@ class Logger final */ void log(const std::string &str); +#ifdef ENABLEDEBUGLOG /** * Enters debug message in the log. The message will be timestamped. */ void dlog(const std::string &str); +#endif void setDebugLog(const bool n) { mDebugLog = n; } |