diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-10 16:36:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-10 16:36:52 +0300 |
commit | b3f38fd1cac82b68fb057db5cf6c6e80e0cdfd90 (patch) | |
tree | 07a2236398d464bc81ed38beb2e1b675a92fcdf6 /src/logger.h | |
parent | 3131f766339fa58875bce8257f6127136c217a30 (diff) | |
download | mv-b3f38fd1cac82b68fb057db5cf6c6e80e0cdfd90.tar.gz mv-b3f38fd1cac82b68fb057db5cf6c6e80e0cdfd90.tar.bz2 mv-b3f38fd1cac82b68fb057db5cf6c6e80e0cdfd90.tar.xz mv-b3f38fd1cac82b68fb057db5cf6c6e80e0cdfd90.zip |
For unknown packet field values show packet id and field value.
Diffstat (limited to 'src/logger.h')
-rw-r--r-- | src/logger.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/logger.h b/src/logger.h index 51966b5e5..98cf2186a 100644 --- a/src/logger.h +++ b/src/logger.h @@ -53,6 +53,9 @@ #define UNIMPLIMENTEDPACKET \ logger->unimplimented(msg.getId()) +#define UNIMPLIMENTEDPACKETFIELD(field) \ + logger->unimplimented(msg.getId(), field) + /** * The Log Class : Useful to write debug or info messages */ @@ -174,6 +177,9 @@ class Logger final void unimplimented(const int id); + void unimplimented(const int id, + const int id2); + private: std::ofstream mLogFile; std::vector<std::string> mDelayedLog; |