diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-10 01:16:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-10 16:07:17 +0300 |
commit | 8aad60beb37fb0f364b0d8ab5bbe66232eacb676 (patch) | |
tree | 3a1680eadda26f9eca889d85420e73178be683d7 /src/logger.cpp | |
parent | 4ee5c0ce8a8ded1f4aa30212948c3acefb2b6242 (diff) | |
download | mv-8aad60beb37fb0f364b0d8ab5bbe66232eacb676.tar.gz mv-8aad60beb37fb0f364b0d8ab5bbe66232eacb676.tar.bz2 mv-8aad60beb37fb0f364b0d8ab5bbe66232eacb676.tar.xz mv-8aad60beb37fb0f364b0d8ab5bbe66232eacb676.zip |
Add UNIMPLIMENTEDPACKET macro
Diffstat (limited to 'src/logger.cpp')
-rw-r--r-- | src/logger.cpp | 11 |
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); +} |