mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-01-11 15:39:37 -05:00
Make tracing file appender blocking (#1643)
This commit is contained in:
parent
2f28ef9401
commit
0ca98cd0b7
@ -13,7 +13,6 @@ pub fn init(debug: bool, json: bool, dir: impl AsRef<Path>) -> Result<()> {
|
|||||||
let registry = Registry::default().with(level_filter);
|
let registry = Registry::default().with(level_filter);
|
||||||
|
|
||||||
let appender = tracing_appender::rolling::never(dir.as_ref(), "swap-all.log");
|
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(
|
let file_logger = registry.with(
|
||||||
fmt::layer()
|
fmt::layer()
|
||||||
|
Loading…
Reference in New Issue
Block a user