1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-08 04:20:07 +02: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:")
for watcher in self.watchers {
print(watcher.url)
}
print(self.watchers.map({ watcher in
return watcher.url.relativePath
}))
}
func addWatcher(for url: URL, eventMask: DispatchSource.FileSystemEvent, behaviour: FSWatcherBehaviour = .reloadsMenu) {