From 38659dbd75d81edbe336d5311a1cd1184d359b7e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 17 Sep 2014 16:34:43 +0300 Subject: add support for ignore packets logging. Option for coma separated packet ids added in misc tab. --- src/net/messageout.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/net/messageout.cpp') diff --git a/src/net/messageout.cpp b/src/net/messageout.cpp index 0026538b5..7ee08b0d4 100644 --- a/src/net/messageout.cpp +++ b/src/net/messageout.cpp @@ -22,6 +22,7 @@ #include "net/messageout.h" +#include "net/net.h" #include "net/packetcounters.h" #include "logger.h" @@ -36,13 +37,16 @@ namespace Net { -MessageOut::MessageOut(const int16_t id A_UNUSED) : +MessageOut::MessageOut(const int16_t id) : mData(nullptr), mDataSize(0), - mPos(0) + mPos(0), + mId(id), + mIgnore(false) { PacketCounters::incOutPackets(); - DEBUGLOG("MessageOut"); + IGNOREDEBUGLOG; + DEBUGLOG2("Send packet", 0, "MessageOut"); } void MessageOut::writeInt8(const int8_t value, const char *const str) -- cgit v1.2.3-70-g09d2