summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorEmīls <emils@mullvad.net>2024-04-17 15:37:41 +0200
committerEmīls <emils@mullvad.net>2024-04-17 15:37:41 +0200
commitec585b78b0155b79ac9153cd44c726c15b93f76c (patch)
treee185ff31dd0105b59067a63cfc9907d3cd04bed8
parentdd475d10501c98068c31c462008da38693bd6006 (diff)
downloadmullvadvpn-ec585b78b0155b79ac9153cd44c726c15b93f76c.tar.xz
mullvadvpn-ec585b78b0155b79ac9153cd44c726c15b93f76c.zip
Remove logs older than 7 days, instead all of them
-rw-r--r--ios/MullvadLogging/Logging.swift2
1 files changed, 1 insertions, 1 deletions
diff --git a/ios/MullvadLogging/Logging.swift b/ios/MullvadLogging/Logging.swift
index b8ad66c191..60ad30de6f 100644
--- a/ios/MullvadLogging/Logging.swift
+++ b/ios/MullvadLogging/Logging.swift
@@ -39,7 +39,7 @@ public struct LoggerBuilder {
do {
try LogRotation.rotateLogs(logDirectory: logsDirectoryURL, options: LogRotation.Options(
storageSizeLimit: 5_242_880, // 5 MB
- oldestAllowedDate: Date(timeIntervalSinceNow: Duration.days(7).timeInterval)
+ oldestAllowedDate: Date(timeIntervalSinceNow: -Duration.days(7).timeInterval)
))
} catch {
logRotationErrors.append(error)