From fcfc83e273a07c34c4af0a730b6f6e79c7252f1d Mon Sep 17 00:00:00 2001 From: manuroe Date: Wed, 4 Mar 2020 15:05:34 +0100 Subject: [PATCH] Logs: Keep the 50 last log files iOS13 kills the app more often. We have no more one log file a day but one log file every few hours. Increase that number of files to have a wider view of what it's going on. --- Riot/AppDelegate.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Riot/AppDelegate.m b/Riot/AppDelegate.m index 8a7808977..ba840c89e 100644 --- a/Riot/AppDelegate.m +++ b/Riot/AppDelegate.m @@ -271,7 +271,7 @@ NSString *const AppDelegateDidValidateEmailNotificationClientSecretKey = @"AppDe // Redirect NSLogs to files only if we are not debugging if (!isatty(STDERR_FILENO)) { - [MXLogger redirectNSLogToFiles:YES]; + [MXLogger redirectNSLogToFiles:YES numberOfFiles:50]; } NSLog(@"[AppDelegate] initialize: Done");