Use getAbbreviatedFrameDump() instead of getAbbreviatedMessage() when logging

The more information the better, when tracking problems.
This commit is contained in:
Tor Lillqvist 2016-12-02 14:30:53 +02:00
parent dde653f920
commit ffbc9baccc

View file

@ -131,11 +131,11 @@ public:
if (result != length)
{
LOG_ERR("Sent incomplete message, expected " << length << " bytes but sent " << result <<
" while sending: " << LOOLProtocol::getAbbreviatedMessage(buffer, length));
" while sending: " << LOOLProtocol::getAbbreviatedFrameDump(buffer, length, flags));
}
else
{
LOG_TRC("Sent frame: " << LOOLProtocol::getAbbreviatedMessage(buffer, length));
LOG_TRC("Sent frame: " << LOOLProtocol::getAbbreviatedFrameDump(buffer, length, flags));
}
return result;