summaryrefslogtreecommitdiff
path: root/src/logger.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-03-10 16:36:52 +0300
committerAndrei Karas <akaras@inbox.ru>2016-03-10 16:36:52 +0300
commitb3f38fd1cac82b68fb057db5cf6c6e80e0cdfd90 (patch)
tree07a2236398d464bc81ed38beb2e1b675a92fcdf6 /src/logger.h
parent3131f766339fa58875bce8257f6127136c217a30 (diff)
downloadplus-b3f38fd1cac82b68fb057db5cf6c6e80e0cdfd90.tar.gz
plus-b3f38fd1cac82b68fb057db5cf6c6e80e0cdfd90.tar.bz2
plus-b3f38fd1cac82b68fb057db5cf6c6e80e0cdfd90.tar.xz
plus-b3f38fd1cac82b68fb057db5cf6c6e80e0cdfd90.zip
For unknown packet field values show packet id and field value.
Diffstat (limited to 'src/logger.h')
-rw-r--r--src/logger.h6
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;