diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-01 12:38:59 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-06 01:18:54 +0300 |
commit | 11d80e856811ceddec805ce68b0a17b13f5cf25e (patch) | |
tree | 31e4c919f5acd2e20b5f805bbe8524b1d0f9f754 /src/logger.h | |
parent | a15146e08d00f9986edfde7a15a70790b64cc1ce (diff) | |
download | manaverse-11d80e856811ceddec805ce68b0a17b13f5cf25e.tar.gz manaverse-11d80e856811ceddec805ce68b0a17b13f5cf25e.tar.bz2 manaverse-11d80e856811ceddec805ce68b0a17b13f5cf25e.tar.xz manaverse-11d80e856811ceddec805ce68b0a17b13f5cf25e.zip |
In debug packets logging also display offset.
Diffstat (limited to 'src/logger.h')
-rw-r--r-- | src/logger.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/logger.h b/src/logger.h index 8eafc70af..ba1aa3f29 100644 --- a/src/logger.h +++ b/src/logger.h @@ -39,9 +39,9 @@ #endif #ifdef ENABLEDEBUGLOG -#define DEBUGLOG2(msg, comment) \ +#define DEBUGLOG2(msg, pos, comment) \ if (logger) \ - logger->dlog2(msg, comment) + logger->dlog2(msg, pos, comment) #else #define DEBUGLOG2(msg, comment) {} #endif @@ -119,7 +119,9 @@ class Logger final */ void dlog(const std::string &str); - void dlog2(const std::string &str, const char* const comment); + void dlog2(const std::string &str, + const int pos, + const char* const comment); #endif void setDebugLog(const bool n) |