mirror of
https://github.com/roc-lang/roc.git
synced 2024-08-16 14:20:56 +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