-
Notifications
You must be signed in to change notification settings - Fork 82
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
chore: remove tracing::info
usage
#578
base: main
Are you sure you want to change the base?
Conversation
β¦-zksync into db/remove-tracing-info
β¦-zksync into db/remove-tracing-info
@itegulov based on the proposal feedback, I turned off For revert / halts and logs in formatter.rs those will be subsequently updated in #571 and #577. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly LGTM
|
||
[dependencies] | ||
anstream.workspace = true | ||
anstyle.workspace = true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: missing newline
let prefix = if self.should_color() { | ||
format!("{}Warning:{} ", WARN, Reset) | ||
} else { | ||
"Warning: ".to_string() | ||
}; | ||
self.println_err(&format!("{}{}", prefix, msg)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit (here and in other places): extra allocations seem unjustified, we could easily just write to stdout/stderr.
Not that it's a performance concern, just feels not very clean. In that regard, I like foundry approach more.
@@ -55,7 +56,7 @@ impl InMemoryNode { | |||
message | |||
); | |||
|
|||
tracing::info!("{}", pretty_message.on_red()); | |||
sh_eprintln!("\n{}", pretty_message.on_red()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here and in other places: why do we need \n
to be inserted manually?
What π»
tracing::info!
in favour of shell wrapper and macro usage. A simplified version of Foundry's shell wrapper.Why β
tracing::info!
with stdoutΒ #435Evidence π·
Include screenshots, screen recordings, or
console
output here demonstrating that your changes work as intended