Merge pull request #8009 from nextcloud/bugfix/careful-not-to-log-details

gui/macOS: Do not log account detail-related messages that were not sent on dead file provider socket
This commit is contained in:
Matthieu Gallien 2025-03-13 12:11:00 +01:00 committed by GitHub
commit b573b32370
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -113,7 +113,8 @@ void FileProviderSocketController::parseReceivedLine(const QString &receivedLine
void FileProviderSocketController::sendMessage(const QString &message) const
{
if (!_socket) {
qCWarning(lcFileProviderSocketController) << "Not sending message on dead file provider socket:" << message;
const auto toLog = message.contains("ACCOUNT_DETAILS") ? "ACCOUNT_DETAILS:****" : message;
qCWarning(lcFileProviderSocketController) << "Not sending message on dead file provider socket:" << toLog;
return;
}