summaryrefslogtreecommitdiffstats
path: root/wsd/COOLWSD.cpp
diff options
context:
space:
mode:
authorCosmin Humeniuc <cosmin.humeniuc@1and1.ro>2023-08-28 09:33:10 +0100
committerCaolán McNamara <caolanm@gmail.com>2023-10-18 16:22:31 +0100
commit7dae294a71e2ca36ae5a378d0b3c3af4e2277ee2 (patch)
treeb17869da40ae89399016f086c4b05c2fcba41bb7 /wsd/COOLWSD.cpp
parentraise quarantine logging to WRN and include more information (diff)
downloadonline-7dae294a71e2ca36ae5a378d0b3c3af4e2277ee2.tar.gz
online-7dae294a71e2ca36ae5a378d0b3c3af4e2277ee2.zip
Avoid logging messages when anonymization is on
Signed-off-by: Cosmin Humeniuc <cosmin.humeniuc@1and1.ro> Change-Id: I5bcf615521d13758b2b70a0c9466a3bbc1a0a918
Diffstat (limited to 'wsd/COOLWSD.cpp')
-rw-r--r--wsd/COOLWSD.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/wsd/COOLWSD.cpp b/wsd/COOLWSD.cpp
index d6a59a1048..613ecea86c 100644
--- a/wsd/COOLWSD.cpp
+++ b/wsd/COOLWSD.cpp
@@ -3858,13 +3858,15 @@ private:
}
else if (child && child->getPid() > 0)
{
+ const std::string abbreviatedMessage = COOLWSD::AnonymizeUserData ? "..." : message->abbr();
LOG_WRN("Child " << child->getPid() << " has no DocBroker to handle message: ["
- << message->abbr() << ']');
+ << abbreviatedMessage << ']');
}
else
{
+ const std::string abbreviatedMessage = COOLWSD::AnonymizeUserData ? "..." : message->abbr();
LOG_ERR("Cannot handle message with unassociated Kit (PID " << _pid << "): ["
- << message->abbr());
+ << abbreviatedMessage);
}
}