logging: truncate long payloads before logging them.

Change-Id: I0caa3300961cd3d9d919691eab77663b5c663bfc
Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
pull/9083/head
Michael Meeks 2024-05-16 18:55:11 +01:00
parent b027c099cc
commit 2414408576
1 changed files with 4 additions and 2 deletions

View File

@ -2172,7 +2172,8 @@ void Document::drainCallbacks()
<< session.getId() << "] for view [" << viewId
<< "] is not running. Dropping ["
<< lokCallbackTypeToString(type) << "] payload ["
<< payload << ']');
<< COOLProtocol::getAbbreviatedMessage(payload)
<< ']');
}
if (!broadcast)
@ -2182,7 +2183,8 @@ void Document::drainCallbacks()
if (!isFound)
LOG_ERR("Document::ViewCallback. Session [" << viewId <<
"] is no longer active to process [" << lokCallbackTypeToString(type) <<
"] [" << payload << "] message to Master Session.");
"] [" << COOLProtocol::getAbbreviatedMessage(payload) <<
"] message to Master Session.");
}
}