Open karellincoln opened 4 months ago
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!
?
I wasn't able to reproduce it either.
Bug Report
Version
tracing = "0.1.40"
Platform
Mac Mini M1
Description
code: