pull/925/head
千橘 雫霞 2 years ago
parent 6e6dbeb071
commit efdaebbe85
No known key found for this signature in database
GPG Key ID: 8C478C263854EFAA

@ -262,7 +262,7 @@ fn main() {
tracing_subscriber::registry().with(fmt::layer()).init(); tracing_subscriber::registry().with(fmt::layer()).init();
let s = span!(Level::TRACE, "my span"); let s = span!(Level::TRACE, "my span");
// 没进入 span因此输出日志将不带上 span 的信息 // 没进入 span因此输出日志将不带上 span 的信息
event!(target: "app_events", Level::INFO, "something has happened 1!"); event!(target: "app_events", Level::INFO, "something has happened 1!");
// 进入 span ( 开始 ) // 进入 span ( 开始 )

Loading…
Cancel
Save