diff options
Diffstat (limited to 'src/logger.cpp')
-rw-r--r-- | src/logger.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/logger.cpp b/src/logger.cpp index 71f26fe25..c2538803d 100644 --- a/src/logger.cpp +++ b/src/logger.cpp @@ -404,3 +404,19 @@ void Logger::unimplimented(const int id, DebugMessageListener::distributeEvent(str); log(str); } + +void Logger::unimplimented(const uint32_t id, + const uint32_t id2, + const uint32_t id3) +{ + if (!mReportUnimplimented) + return; + + const std::string str = strprintf( + "Wrong actual or planned inbound packet size!. " + "Packet id: %u, Planned size: %u, Actual size: %u", + id, + id2, + id3); + DebugMessageListener::distributeEvent(str); +} |