Skip to content

Commit b40a683

Browse files
committed
log which file we are reading right now
1 parent ced0b75 commit b40a683

File tree

1 file changed

+4
-1
lines changed
  • crates/oxide/src/scanner

1 file changed

+4
-1
lines changed

crates/oxide/src/scanner/mod.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,10 @@ impl Scanner {
425425
fn read_changed_content(c: ChangedContent) -> Option<Vec<u8>> {
426426
let (content, extension) = match c {
427427
ChangedContent::File(file, extension) => match std::fs::read(&file) {
428-
Ok(content) => (content, extension),
428+
Ok(content) => {
429+
event!(tracing::Level::INFO, "Reading {:?}", file);
430+
(content, extension)
431+
}
429432
Err(e) => {
430433
event!(tracing::Level::ERROR, "Failed to read file: {:?}", e);
431434
return None;

0 commit comments

Comments
 (0)