1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-11-09 13:10:24 +01:00

👌 Nicer logging of multiple paths

This commit is contained in:
2021-12-19 14:16:49 +01:00
parent f82a3bb008
commit fe695bb026

View File

@@ -41,9 +41,9 @@ class PhpConfigWatcher {
} }
print("A watcher exists for the following config paths:") print("A watcher exists for the following config paths:")
for watcher in self.watchers { print(self.watchers.map({ watcher in
print(watcher.url) return watcher.url.relativePath
} }))
} }
func addWatcher(for url: URL, eventMask: DispatchSource.FileSystemEvent, behaviour: FSWatcherBehaviour = .reloadsMenu) { func addWatcher(for url: URL, eventMask: DispatchSource.FileSystemEvent, behaviour: FSWatcherBehaviour = .reloadsMenu) {