aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src/logging.rs
diff options
context:
space:
mode:
Diffstat (limited to 'alacritty/src/logging.rs')
-rw-r--r--alacritty/src/logging.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/alacritty/src/logging.rs b/alacritty/src/logging.rs
index 3ac40e4b..f3405e58 100644
--- a/alacritty/src/logging.rs
+++ b/alacritty/src/logging.rs
@@ -184,7 +184,7 @@ impl OnDemandLogFile {
// Create the file if it doesn't exist yet.
if self.file.is_none() {
- let file = OpenOptions::new().append(true).create(true).open(&self.path);
+ let file = OpenOptions::new().append(true).create_new(true).open(&self.path);
match file {
Ok(file) => {