summaryrefslogtreecommitdiff
path: root/src/logger.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-10 01:16:50 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-10 16:07:17 +0300
commit8aad60beb37fb0f364b0d8ab5bbe66232eacb676 (patch)
tree3a1680eadda26f9eca889d85420e73178be683d7 /src/logger.cpp
parent4ee5c0ce8a8ded1f4aa30212948c3acefb2b6242 (diff)
downloadplus-8aad60beb37fb0f364b0d8ab5bbe66232eacb676.tar.gz
plus-8aad60beb37fb0f364b0d8ab5bbe66232eacb676.tar.bz2
plus-8aad60beb37fb0f364b0d8ab5bbe66232eacb676.tar.xz
plus-8aad60beb37fb0f364b0d8ab5bbe66232eacb676.zip
Add UNIMPLIMENTEDPACKET macro
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);
+}