Skip to content

Commit 2353967

Browse files
authored
chore: improve some trace-level logs (foundry-rs#163)
without a span they're messages with no context
1 parent fd1c051 commit 2353967

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/compilers/src/cache.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,7 @@ impl<'a, T: ArtifactOutput, C: Compiler> ArtifactsCacheInner<'a, T, C> {
690690
}
691691

692692
/// Returns whether we are missing artifacts for the given file and version.
693+
#[instrument(level = "trace", skip(self))]
693694
fn is_missing_artifacts(&self, file: &Path, version: &Version) -> bool {
694695
let Some(entry) = self.cache.entry(file) else {
695696
trace!("missing cache entry");
@@ -705,7 +706,7 @@ impl<'a, T: ArtifactOutput, C: Compiler> ArtifactsCacheInner<'a, T, C> {
705706
}
706707

707708
if !entry.contains_version(version) {
708-
trace!("missing linked artifacts",);
709+
trace!("missing linked artifacts");
709710
return true;
710711
}
711712

0 commit comments

Comments
 (0)