From 6022e00dad15c93abeba06765535659c460a7e66 Mon Sep 17 00:00:00 2001 From: joshuaboud Date: Fri, 5 Aug 2022 13:38:27 -0300 Subject: [PATCH] add logging --- navigator/src/functions/fileSystemWatcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/navigator/src/functions/fileSystemWatcher.js b/navigator/src/functions/fileSystemWatcher.js index 590f567..b84eb54 100644 --- a/navigator/src/functions/fileSystemWatcher.js +++ b/navigator/src/functions/fileSystemWatcher.js @@ -52,6 +52,7 @@ function FileSystemWatcher(path, options = {}, handlers = {}, defer=false) { }; const handleEvent = (eventObj) => { + if (self.log) console.log('fsWatchEvent', eventObj); if (options.ignoreSelf && eventObj.path === self.path) return; switch (eventObj.event) { @@ -122,7 +123,6 @@ function FileSystemWatcher(path, options = {}, handlers = {}, defer=false) { fsWatchChannel = cockpit.channel({ payload: "fswatch1", command: "open", - watch: true, superuser: options.superuser ?? 'try', host: self.host, path: self.path,