Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/ostree-ext/src/sysroot.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl SysrootLock {
});
}
if !printed {
println!("Waiting for sysroot lock...");
eprintln!("Waiting for sysroot lock...");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

While using eprintln! is a good step to avoid polluting stdout, it would be more idiomatic and maintainable to use a structured logging facade like the log crate (e.g., log::info!("Waiting for sysroot lock...")). This aligns with the goal of auditing println! usage mentioned in the PR description and allows for benefits like configurable log levels.

As a side note, the doc comment for new_from_sysroot on line 35 is now outdated and should be updated to state that the message is printed to standard error.

printed = true;
}
tokio::time::sleep(std::time::Duration::from_secs(3)).await;
Expand Down