Make tracing file appender blocking (#1643)

This commit is contained in:
binarybaron 2024-05-25 14:43:22 +02:00 committed by GitHub
parent 2f28ef9401
commit 0ca98cd0b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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()