From c88fb7fb3e4c8b695b9c7620d587aa9ea52e20b0 Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Tue, 14 Mar 2023 21:36:20 +0100 Subject: [PATCH] Do not hide interpolated log strings in FileProviderSocketLineProcessor Signed-off-by: Claudio Cambra --- .../FileProviderExt/FileProviderSocketLineProcessor.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderSocketLineProcessor.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderSocketLineProcessor.swift index fcccf00ca..cf6ff8c77 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderSocketLineProcessor.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderSocketLineProcessor.swift @@ -27,7 +27,7 @@ class FileProviderSocketLineProcessor: NSObject, LineProcessor { if (line.contains("~")) { // We use this as the separator specifically in ACCOUNT_DETAILS Logger.desktopClientConnection.debug("Processing file provider line with potentially sensitive user data") } else { - Logger.desktopClientConnection.debug("Processing file provider line: \(line)") + Logger.desktopClientConnection.debug("Processing file provider line: \(line, privacy: .public)") } let splitLine = line.split(separator: ":", maxSplits: 1) @@ -37,7 +37,7 @@ class FileProviderSocketLineProcessor: NSObject, LineProcessor { } let command = String(commandSubsequence); - Logger.desktopClientConnection.debug("Received command: \(command)") + Logger.desktopClientConnection.debug("Received command: \(command, privacy: .public)") if (command == "SEND_FILE_PROVIDER_DOMAIN_IDENTIFIER") { delegate.sendFileProviderDomainIdentifier() } else if (command == "ACCOUNT_NOT_AUTHENTICATED") { -- 2.30.2