Append all cli logs to single log file

After careful consideration, I've concluded that it's not practical/possible to ensure that the previous behaviour (one log file per swap) is preserved due to limitations of the tracing-subscriber crate and a big in the built in JSON formatter
This commit is contained in:
binarybaron 2023-08-12 17:16:23 +02:00
parent f804254f94
commit 433bf824f9
2 changed files with 29 additions and 48 deletions

View file

@ -93,7 +93,7 @@ impl Context {
let tor_socks5_port = tor.map(|tor| tor.tor_socks5_port);
START.call_once(|| {
let _ = cli::tracing::init(debug, json, data_dir.join("logs"), None);
let _ = cli::tracing::init(debug, json, data_dir.join("logs"));
});
let context = Context {