summaryrefslogtreecommitdiff
path: root/src/logger.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-01 18:06:39 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-01 18:06:39 +0300
commite6977ace705cea79b5661ca766ae07dd435f0ef6 (patch)
tree8d305a3436b7d2ee385cd9082131c84146c0615c /src/logger.h
parent249550563325af4043ed864f676c18d386428b19 (diff)
downloadmanaverse-e6977ace705cea79b5661ca766ae07dd435f0ef6.tar.gz
manaverse-e6977ace705cea79b5661ca766ae07dd435f0ef6.tar.bz2
manaverse-e6977ace705cea79b5661ca766ae07dd435f0ef6.tar.xz
manaverse-e6977ace705cea79b5661ca766ae07dd435f0ef6.zip
Add debug messages to some packets.
Diffstat (limited to 'src/logger.h')
-rw-r--r--src/logger.h4
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