From e59c12e3f458b80f29a6cbd0fbf46ccc417851dd Mon Sep 17 00:00:00 2001 From: Claudio Cambra Date: Wed, 3 Apr 2024 20:41:08 +0800 Subject: [PATCH] Improve logging in ShareeSuggestionsDataSource Signed-off-by: Claudio Cambra --- .../FileProviderUIExt/ShareeSuggestionsDataSource.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareeSuggestionsDataSource.swift b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareeSuggestionsDataSource.swift index 604efff32..a8b247e9c 100644 --- a/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareeSuggestionsDataSource.swift +++ b/shell_integration/MacOSX/NextcloudIntegration/FileProviderUIExt/ShareeSuggestionsDataSource.swift @@ -23,11 +23,13 @@ class ShareeSuggestionsDataSource: SuggestionsDataSource { private func updateSuggestions() async { let sharees = await fetchSharees(search: inputString) + Logger.shareeDataSource.info("Fetched \(sharees.count, privacy: .public) sharees.") suggestions = suggestionsFromSharees(sharees) NotificationCenter.default.post(name: SuggestionsChangedNotificationName, object: self) } private func fetchSharees(search: String) async -> [NKSharee] { + Logger.shareeDataSource.debug("Searching sharees with: \(search, privacy: .public)") return await withCheckedContinuation { continuation in kit.searchSharees( search: inputString, -- 2.30.2