Fix panic-json writing (#35691)
We broke it in #35263 when we changed the open options to use `create_new` Release Notes: - N/A
This commit is contained in:
parent
53175263a1
commit
74e17c2f64
1 changed files with 1 additions and 0 deletions
|
@ -149,6 +149,7 @@ pub fn init_panic_hook(
|
|||
let timestamp = chrono::Utc::now().format("%Y_%m_%d %H_%M_%S").to_string();
|
||||
let panic_file_path = paths::logs_dir().join(format!("zed-{timestamp}.panic"));
|
||||
let panic_file = fs::OpenOptions::new()
|
||||
.write(true)
|
||||
.create_new(true)
|
||||
.open(&panic_file_path)
|
||||
.log_err();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue