Skip to content

Commit 4112bd3

Browse files
committed
DEBUG
1 parent 34e09ca commit 4112bd3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

rust/extractor/src/main.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,19 @@ impl<'a> Extractor<'a> {
349349
let path = path.join(format!("{hash:0>16x}"));
350350
let mut trap = self.traps.create("crates", path.as_path());
351351
if trap.path.exists() {
352+
log::warn!(
353+
"Skipping trap file: {} for {}",
354+
trap.path.display(),
355+
format!("crate:{root_module_file}:{hash}")
356+
);
352357
continue;
353358
}
359+
log::warn!(
360+
"Writing trap file: {} for {}",
361+
trap.path.display(),
362+
format!("crate:{root_module_file}:{hash}")
363+
);
364+
354365
let krate = &crate_graph[krate_id];
355366
let element = generated::Crate {
356367
id: trap::TrapId::Key(format!("crate:{root_module_file}:{hash}")),

0 commit comments

Comments
 (0)