Improve logging in delete item procedure of FPExt
authorClaudio Cambra <claudio.cambra@nextcloud.com>
Mon, 15 Apr 2024 17:54:37 +0000 (01:54 +0800)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Wed, 17 Apr 2024 08:44:12 +0000 (08:44 +0000)
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
shell_integration/MacOSX/NextcloudIntegration/FileProviderExt/FileProviderExtension.swift

index ccd505f45a5e6e7fcdd24783430b461ba266d997..e62a6aa17e8890079047fa6cc9aaacc34e299942 100644 (file)
@@ -289,6 +289,9 @@ import OSLog
 
 
         guard let item = Item.storedItem(identifier: identifier, usingKit: ncKit) else {
+            Logger.fileProviderExtension.error(
+                "Not deleting item \(identifier.rawValue, privacy: .public), item not found"
+            )
             completionHandler(NSFileProviderError(.noSuchItem))
             return Progress()
         }