diff options
| author | Emīls <emils@mullvad.net> | 2024-04-17 15:37:41 +0200 |
|---|---|---|
| committer | Emīls <emils@mullvad.net> | 2024-04-17 15:37:41 +0200 |
| commit | ec585b78b0155b79ac9153cd44c726c15b93f76c (patch) | |
| tree | e185ff31dd0105b59067a63cfc9907d3cd04bed8 | |
| parent | dd475d10501c98068c31c462008da38693bd6006 (diff) | |
| download | mullvadvpn-ec585b78b0155b79ac9153cd44c726c15b93f76c.tar.xz mullvadvpn-ec585b78b0155b79ac9153cd44c726c15b93f76c.zip | |
Remove logs older than 7 days, instead all of them
| -rw-r--r-- | ios/MullvadLogging/Logging.swift | 2 |
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) |
