Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: forester: switch logging from log to tracing #1143

Merged
merged 3 commits into from
Sep 2, 2024

Conversation

sergeytimoshin
Copy link
Contributor

  • Replaced the log crate with tracing for improved structured logging.
  • Adjusted dependencies in Cargo.toml and removed log crate.

Replaced the `log` crate with `tracing` for improved structured logging. Switched various log levels, such as from `info` to `debug`, and updated macros accordingly. Adjusted dependencies in `Cargo.toml` and removed `log` crate.
@@ -55,7 +55,7 @@ pub async fn run_queue_info(
QUEUE_LENGTH
.with_label_values(&[&*queue_type.to_string(), &tree_data.merkle_tree.to_string()])
.set(queue_length as i64);
info!(
println!(
Copy link
Contributor

Choose a reason for hiding this comment

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

println! instead of debug on purpose?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. It's not a debug printout, its output for the user.

@ananas-block ananas-block merged commit 01dc9c8 into main Sep 2, 2024
7 checks passed
@ananas-block ananas-block deleted the sergey/forester-cleanup-logs branch September 2, 2024 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants