Skip to content

Commit 9b29d2f

Browse files
committed
debug: add logs
1 parent 2572170 commit 9b29d2f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

rewatch/src/watcher.rs

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

129-
log::debug!("{:?}", event.paths);
130-
131129
let paths = event
132130
.paths
133131
.iter()
@@ -148,6 +146,7 @@ async fn async_watch(
148146
) => {
149147
// if we are going to do a full compile, we don't need to bother marking
150148
// files dirty because we do a full scan anyway
149+
log::debug!("received {:?} while needs_compile_type was {needs_compile_type:?} -> full compile", event.kind);
151150
needs_compile_type = CompileType::Full;
152151
}
153152

@@ -158,6 +157,7 @@ async fn async_watch(
158157
) => {
159158
// if we are going to compile incrementally, we need to mark the exact files
160159
// dirty
160+
log::debug!("received {:?} while needs_compile_type was {needs_compile_type:?} -> incremental compile", event.kind);
161161
if let Ok(canonicalized_path_buf) = path_buf
162162
.canonicalize()
163163
.map(StrippedVerbatimPath::to_stripped_verbatim_path)
@@ -219,6 +219,11 @@ async fn async_watch(
219219
}
220220
}
221221
}
222+
223+
if needs_compile_type != CompileType::None {
224+
log::debug!("doing {needs_compile_type:?}");
225+
}
226+
222227
match needs_compile_type {
223228
CompileType::Incremental => {
224229
let timing_total = Instant::now();

0 commit comments

Comments
 (0)