Skip to content

Commit

Permalink
Don't append to error log
Browse files Browse the repository at this point in the history
  • Loading branch information
kuviman committed Jul 4, 2024
1 parent e4a3e7b commit ad453b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ pub fn setup_panic_handler() {
std::panic::set_hook(Box::new(move |info: &std::panic::PanicInfo| {
let log_file_path = preferences::base_path().join("error.txt");
if let Ok(mut file) = std::fs::OpenOptions::new()
.append(true)
// .append(true)
.create(true)
.open(log_file_path)
{
Expand Down

0 comments on commit ad453b8

Please sign in to comment.