Skip to content

Commit 2572170

Browse files
committed
debug: add logs
1 parent 22ad3f5 commit 2572170

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

rewatch/src/watcher.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ async fn async_watch(
126126
}
127127
}
128128

129+
log::debug!("{:?}", event.paths);
130+
129131
let paths = event
130132
.paths
131133
.iter()
@@ -316,6 +318,9 @@ pub fn start(
316318

317319
let mut watcher = RecommendedWatcher::new(move |res| producer.push(res), Config::default())
318320
.expect("Could not create watcher");
321+
322+
log::debug!("watching {folder}");
323+
319324
watcher
320325
.watch(folder.as_ref(), RecursiveMode::Recursive)
321326
.expect("Could not start watcher");

0 commit comments

Comments
 (0)