Skip to content

Commit

Permalink
Make tracing file appender blocking (#1643)
Browse files Browse the repository at this point in the history
  • Loading branch information
binarybaron authored May 25, 2024
1 parent 2f28ef9 commit 0ca98cd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion swap/src/cli/tracing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 0ca98cd

Please sign in to comment.