From 57ced98f98092b92700e3fbdad43c5d6fe3847bd Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Fri, 26 Apr 2024 18:06:29 +0800 Subject: [PATCH] Censor account details string in file provider logging Signed-off-by: Claudio Cambra --- src/gui/macOS/fileprovidersocketcontroller.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gui/macOS/fileprovidersocketcontroller.cpp b/src/gui/macOS/fileprovidersocketcontroller.cpp index 42a66b46532a9..0b34a9962ad61 100644 --- a/src/gui/macOS/fileprovidersocketcontroller.cpp +++ b/src/gui/macOS/fileprovidersocketcontroller.cpp @@ -101,7 +101,11 @@ void FileProviderSocketController::sendMessage(const QString &message) const return; } - qCInfo(lcFileProviderSocketController) << "Sending File Provider socket message:" << message; + if (message.contains("ACCOUNT_DETAILS:")) { + qCDebug(lcFileProviderSocketController) << "Sending File Provider socket message: ACCOUNT_DETAILS:****"; + } else { + qCDebug(lcFileProviderSocketController) << "Sending File Provider socket message:" << message; + } const auto lineEndChar = '\n'; const auto messageToSend = message.endsWith(lineEndChar) ? message : message + lineEndChar; const auto bytesToSend = messageToSend.toUtf8();