Skip to content

Commit

Permalink
test log
Browse files Browse the repository at this point in the history
  • Loading branch information
claucambra committed Aug 1, 2024
1 parent 48fefcd commit e3ae251
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/NextcloudFileProviderKit/Item/Item.swift
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ public class Item: NSObject, NSFileProviderItem {
}

public var fileSystemFlags: NSFileProviderFileSystemFlags {
Logger(subsystem: Logger.subsystem, category: "item").debug(
"Item \(self.filename, privacy: .public) flags: \(self.metadata.lock ? "locked" : "unlocked", privacy: .public) lockOwner: \(self.metadata.lockOwner, privacy: .public) remoteInterfaceAccountUsername: \(self.remoteInterface.account.username, privacy: .public) lockTimeOut: \(self.metadata.lockTimeOut?.description ?? "NONE" , privacy: .public)"
)
if metadata.lock,
metadata.lockOwner != remoteInterface.account.username,
metadata.lockTimeOut ?? Date() > Date()
Expand Down

0 comments on commit e3ae251

Please sign in to comment.