[Libreoffice-commits] online.git: common/Message.hpp
Ashod Nakashian
ashod.nakashian at collabora.co.uk
Mon Mar 27 03:18:47 UTC 2017
common/Message.hpp | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit b69d5683c3f1718a796bd71f35b350df7e040f30
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date: Sun Mar 26 23:03:15 2017 -0400
wsd: log messages upon construction
Change-Id: Id8f2eeaa1fabf538af0c327a971d35cc17cb3596
Reviewed-on: https://gerrit.libreoffice.org/35734
Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
Tested-by: Ashod Nakashian <ashnakash at gmail.com>
diff --git a/common/Message.hpp b/common/Message.hpp
index d75b1e9e..99ccd77a 100644
--- a/common/Message.hpp
+++ b/common/Message.hpp
@@ -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(); }
More information about the Libreoffice-commits
mailing list