mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-11 10:55:31 +03:00
Remove old file if it was present
This commit is contained in:
parent
3b2e3d515f
commit
eec16fc0ff
@ -54,6 +54,7 @@ impl TracingGuards {
|
||||
#[must_use]
|
||||
pub fn setup_tracing() -> TracingGuards {
|
||||
if let Ok(file) = std::env::var(LOGTO_VAR) {
|
||||
let _ = std::fs::remove_file(&file);
|
||||
let file_appender = tracing_appender::rolling::never(".", file);
|
||||
let (non_blocking, guard) = tracing_appender::non_blocking(file_appender);
|
||||
let file_layer = fmt::Layer::default()
|
||||
|
Loading…
Reference in New Issue
Block a user