mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Remove old file if it was present
This commit is contained in:
parent
3b2e3d515f
commit
eec16fc0ff
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue