mirror of
https://github.com/an-anime-team/sleepy-launcher.git
synced 2025-03-15 06:28:27 +03:00
style(tracing): added pretty formatting to debug.log file
Should greatly improve readability
This commit is contained in:
parent
efa96b9d2b
commit
82657f2db8
2 changed files with 7 additions and 1 deletions
5
.vscode/settings.json
vendored
Normal file
5
.vscode/settings.json
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"conventionalCommits.scopes": [
|
||||
"tracing"
|
||||
]
|
||||
}
|
|
@ -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")
|
||||
}));
|
||||
|
|
Loading…
Add table
Reference in a new issue