From fef64b80a888b9c86a66dff0e32d4958548a0d23 Mon Sep 17 00:00:00 2001 From: Bug Magnet Date: Thu, 28 Nov 2024 11:55:48 +0100 Subject: [PATCH] Reduce the maximum log file size to 2MB --- ios/MullvadLogging/Logging.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/MullvadLogging/Logging.swift b/ios/MullvadLogging/Logging.swift index 4b5b7a3965fd..a9b3a3820020 100644 --- a/ios/MullvadLogging/Logging.swift +++ b/ios/MullvadLogging/Logging.swift @@ -38,7 +38,7 @@ public struct LoggerBuilder { do { try LogRotation.rotateLogs(logDirectory: logsDirectoryURL, options: LogRotation.Options( - storageSizeLimit: 5_242_880, // 5 MB + storageSizeLimit: 2_000_000, // 2 MB oldestAllowedDate: Date(timeIntervalSinceNow: -Duration.days(7).timeInterval) )) } catch {