Skip to content

Commit

Permalink
Reduce the maximum log file size to 2MB
Browse files Browse the repository at this point in the history
  • Loading branch information
buggmagnet committed Nov 28, 2024
1 parent 8f45d95 commit fef64b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/MullvadLogging/Logging.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit fef64b8

Please sign in to comment.