mirror of
https://github.com/LibreOffice/online.git
synced 2025-08-20 16:39:17 +00:00
wsd: log messages upon construction
Change-Id: Id8f2eeaa1fabf538af0c327a971d35cc17cb3596 Reviewed-on: https://gerrit.libreoffice.org/35734 Reviewed-by: Ashod Nakashian <ashnakash@gmail.com> Tested-by: Ashod Nakashian <ashnakash@gmail.com>
This commit is contained in:

committed by
Ashod Nakashian

parent
d99dbade2b
commit
b69d5683c3
@ -15,6 +15,7 @@
|
||||
#include <vector>
|
||||
|
||||
#include "Protocol.hpp"
|
||||
#include "Log.hpp"
|
||||
|
||||
/// The payload type used to send/receive data.
|
||||
class Message
|
||||
@ -36,6 +37,7 @@ public:
|
||||
_abbr(_id + ' ' + LOOLProtocol::getAbbreviatedMessage(_data.data(), _data.size())),
|
||||
_type(detectType())
|
||||
{
|
||||
LOG_TRC("Message " << _abbr);
|
||||
}
|
||||
|
||||
/// Construct a message from a string with type and
|
||||
@ -55,6 +57,7 @@ public:
|
||||
_data.resize(message.size());
|
||||
const auto offset = skipWhitespace(message.data() + _forwardToken.size());
|
||||
std::memcpy(_data.data(), offset, message.size() - (offset - message.data()));
|
||||
LOG_TRC("Message " << _abbr);
|
||||
}
|
||||
|
||||
/// Construct a message from a character array with type.
|
||||
@ -70,6 +73,7 @@ public:
|
||||
_abbr(_id + ' ' + LOOLProtocol::getAbbreviatedMessage(_data.data(), _data.size())),
|
||||
_type(detectType())
|
||||
{
|
||||
LOG_TRC("Message " << _abbr);
|
||||
}
|
||||
|
||||
size_t size() const { return _data.size(); }
|
||||
|
Reference in New Issue
Block a user