Skip to content

Commit

Permalink
feat(filewatcher): Debug logging on removed dir
Browse files Browse the repository at this point in the history
Adds debug logging when setting up file watching fails due to
the directory no longer existing
  • Loading branch information
krlvi committed Nov 8, 2024
1 parent e3b2b6a commit f9e08fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/turborepo-filewatch/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,9 @@ async fn watch_events(
for new_path in &event.paths {
if let Err(err) = manually_add_recursive_watches(new_path, &mut watcher, Some(&broadcast_sender)) {
match err {
WatchError::WalkDir(_) => {
WatchError::WalkDir(err) => {
// Likely the path no longer exists
debug!("encountered error watching filesystem {}", err);
continue;
},
_ => {
Expand Down

0 comments on commit f9e08fc

Please sign in to comment.