diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-02-01 18:06:39 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-02-01 18:06:39 +0300 |
commit | e6977ace705cea79b5661ca766ae07dd435f0ef6 (patch) | |
tree | 8d305a3436b7d2ee385cd9082131c84146c0615c /src/logger.h | |
parent | 249550563325af4043ed864f676c18d386428b19 (diff) | |
download | mv-e6977ace705cea79b5661ca766ae07dd435f0ef6.tar.gz mv-e6977ace705cea79b5661ca766ae07dd435f0ef6.tar.bz2 mv-e6977ace705cea79b5661ca766ae07dd435f0ef6.tar.xz mv-e6977ace705cea79b5661ca766ae07dd435f0ef6.zip |
Add debug messages to some packets.
Diffstat (limited to 'src/logger.h')
-rw-r--r-- | src/logger.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/logger.h b/src/logger.h index 52f1b5a86..51966b5e5 100644 --- a/src/logger.h +++ b/src/logger.h @@ -39,10 +39,14 @@ #define DEBUGLOG2(str, pos, comment) \ if (logger && !mIgnore) \ logger->dlog2(str, pos, comment) +#define DEBUGLOGSTR(str) \ + if (logger) \ + logger->dlog(str) #define IGNOREDEBUGLOG mIgnore = Net::isIgnorePacket(mId) #else #define DEBUGLOG(str) {} #define DEBUGLOG2(str, comment) {} +#define DEBUGLOGSTR(str) #define IGNOREDEBUGLOG {} #endif |