summaryrefslogtreecommitdiff
path: root/src/logger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/logger.cpp')
-rw-r--r--src/logger.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/logger.cpp b/src/logger.cpp
index e5b7264cf..e91480f7f 100644
--- a/src/logger.cpp
+++ b/src/logger.cpp
@@ -74,7 +74,8 @@ Logger::Logger() :
mMutex(SDL_CreateMutex()),
mThreadLocked(false),
mLogToStandardOut(true),
- mDebugLog(false)
+ mDebugLog(false),
+ mReportUnimplimented(false)
{
}
@@ -358,6 +359,9 @@ void Logger::error(const std::string &error_text)
void Logger::unimplimented(const int id)
{
+ if (!mReportUnimplimented)
+ return;
+
const std::string str = strprintf("Unimplimented packet: %d", id);
DebugMessageListener::distributeEvent(str);
log(str);