diff options
| -rw-r--r-- | mullvad-daemon/src/main.rs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/mullvad-daemon/src/main.rs b/mullvad-daemon/src/main.rs index f4a033e5f0..50fc5d1991 100644 --- a/mullvad-daemon/src/main.rs +++ b/mullvad-daemon/src/main.rs @@ -660,10 +660,12 @@ impl Daemon { backup.set_extension("old.log"); fs::rename(file, backup).unwrap_or_else(|error| { - warn!( - "Failed to create backup of previous tunnel log file ({})", - error - ); + if error.kind() != io::ErrorKind::NotFound { + warn!( + "Failed to create backup of previous tunnel log file ({})", + error + ); + } }); fs::File::create(file).chain_err(|| "Unable to create the tunnel log file")?; |
