Make tracing file appender blocking

This commit is contained in:
binarybaron 2024-05-25 14:41:03 +02:00
parent 2f28ef9401
commit eeea9d3927

View File

@ -13,7 +13,6 @@ pub fn init(debug: bool, json: bool, dir: impl AsRef<Path>) -> Result<()> {
let registry = Registry::default().with(level_filter);
let appender = tracing_appender::rolling::never(dir.as_ref(), "swap-all.log");
let (appender, _guard) = tracing_appender::non_blocking(appender);
let file_logger = registry.with(
fmt::layer()