summaryrefslogtreecommitdiff
path: root/src/logger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/logger.cpp')
-rw-r--r--src/logger.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/logger.cpp b/src/logger.cpp
index 8417a3c83..e5b7264cf 100644
--- a/src/logger.cpp
+++ b/src/logger.cpp
@@ -24,6 +24,10 @@
#include "settings.h"
+#include "listeners/debugmessagelistener.h"
+
+#include "utils/stringutils.h"
+
#include <iostream>
#include <sstream>
@@ -351,3 +355,10 @@ void Logger::error(const std::string &error_text)
#endif
exit(1);
}
+
+void Logger::unimplimented(const int id)
+{
+ const std::string str = strprintf("Unimplimented packet: %d", id);
+ DebugMessageListener::distributeEvent(str);
+ log(str);
+}