Skip to content

Commit

Permalink
Merge pull request #14 from bze-alphateam/hotfix/log-message
Browse files Browse the repository at this point in the history
log command on process message exceptions
  • Loading branch information
faneaatiku authored Dec 15, 2019
2 parents d582433 + ab293a3 commit 83b3efa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6912,7 +6912,7 @@ bool ProcessMessages(CNode* pfrom)
if (strstr(e.what(), "end of data"))
{
// Allow exceptions from under-length message on vRecv
LogPrintf("%s(%s, %u bytes): Exception '%s' caught, normally caused by a message being shorter than its stated length\n", __func__, SanitizeString(strCommand), nMessageSize, e.what());
LogPrintf("%s(%s, %u bytes): Exception '%s' caught, normally caused by a message being shorter than its stated length, command = %s\n", __func__, SanitizeString(strCommand), nMessageSize, e.what(), strCommand.c_str());
}
else if (strstr(e.what(), "size too large"))
{
Expand Down

0 comments on commit 83b3efa

Please sign in to comment.