mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-11-09 21:20:07 +01:00
👌 Nicer logging of multiple paths
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user