You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am on the exact same versions and executed exactly the same code as you and get the correct output:
2024-03-06T14:48:58.857352Z INFO rust_test: {}
2024-03-06T14:48:58.857418Z INFO rust_test: finished!!!
2024-03-06T14:48:58.857426Z INFO rust_test: {"a":"a"}
2024-03-06T14:48:58.857432Z INFO rust_test: finished!!!
2024-03-06T14:48:58.857438Z INFO rust_test: ---- {"a":"a"}
2024-03-06T14:48:58.857443Z INFO rust_test: finished!!!
But as you use the EnvFilter you are setting a filter according to your RUST_LOG environment variable. Please post that one as well :)
What rust/cargo version are you using? If it's possible, can you try your repro on the latest stable?
The arguments you're passing into the macro invocation should all be passed to format_args! so it's possible there was a bug or there is one on your platform. Does the same code work for you when you use println! instead of tracing::info!?
Bug Report
Version
tracing = "0.1.40"
Platform
Mac Mini M1
Description
code:
The text was updated successfully, but these errors were encountered: