Skip to content

Commit

Permalink
Fix: When logger fails to init, no error showing
Browse files Browse the repository at this point in the history
  • Loading branch information
xairaven committed Sep 18, 2024
1 parent bde9fbe commit ba42c12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn main() {
&config::lock_get_log_filename(),
)
.unwrap_or_else(|err| {
log::error!("Error: {err}");
println!("Logger initialization failed. Error: {}", err);
std::process::exit(1);
});

Expand Down

0 comments on commit ba42c12

Please sign in to comment.