style(tracing): added pretty formatting to debug.log file

Should greatly improve readability
This commit is contained in:
Observer KRypt0n_ 2023-02-23 14:48:06 +02:00
parent efa96b9d2b
commit 82657f2db8
No known key found for this signature in database
GPG key ID: 844DA47BA25FE1E2
2 changed files with 7 additions and 1 deletions

5
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,5 @@
{
"conventionalCommits.scopes": [
"tracing"
]
}

View file

@ -65,8 +65,9 @@ fn main() {
};
let debug_log = tracing_subscriber::fmt::layer()
.pretty()
// .with_ansi(false) // sadly doesn't work with pretty style
.with_writer(std::sync::Arc::new(file))
.with_ansi(false)
.with_filter(filter_fn(|metadata| {
!metadata.target().contains("rustls")
}));