From 82657f2db885c80f7c340f4f3b867716035a3176 Mon Sep 17 00:00:00 2001 From: Observer KRypt0n_ Date: Thu, 23 Feb 2023 14:48:06 +0200 Subject: [PATCH] style(tracing): added pretty formatting to debug.log file Should greatly improve readability --- .vscode/settings.json | 5 +++++ src/main.rs | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..56290a9 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "conventionalCommits.scopes": [ + "tracing" + ] +} \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index 9199419..4926b0a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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") }));