mirror of
https://github.com/watchexec/watchexec.git
synced 2024-11-13 07:41:11 +01:00
Reduce verbosity of tracing span output
This commit is contained in:
parent
f0435eeaf3
commit
1ce238949e
2 changed files with 3 additions and 2 deletions
|
@ -36,7 +36,8 @@ async fn main() -> Result<()> {
|
|||
});
|
||||
|
||||
if verbosity > 2 {
|
||||
builder = builder.with_span_events(tracing_subscriber::fmt::format::FmtSpan::FULL);
|
||||
use tracing_subscriber::fmt::format::FmtSpan;
|
||||
builder = builder.with_span_events(FmtSpan::NEW | FmtSpan::CLOSE);
|
||||
}
|
||||
|
||||
if verbosity > 3 {
|
||||
|
|
|
@ -206,7 +206,7 @@ fn tracing_init() {
|
|||
};
|
||||
Subscriber::builder()
|
||||
.pretty()
|
||||
.with_span_events(FmtSpan::FULL)
|
||||
.with_span_events(FmtSpan::NEW | FmtSpan::CLOSE)
|
||||
.with_env_filter(EnvFilter::from_default_env())
|
||||
.finish()
|
||||
.try_init()
|
||||
|
|
Loading…
Reference in a new issue