From 698b9140490703de8df249016fb6daffeeb2b586 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Mon, 23 Jan 2017 13:31:23 -0500 Subject: [PATCH] Elaborate logging in app delegate. // FREEBIE --- Signal/src/AppDelegate.m | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Signal/src/AppDelegate.m b/Signal/src/AppDelegate.m index f37bd5e08..945ffed7a 100644 --- a/Signal/src/AppDelegate.m +++ b/Signal/src/AppDelegate.m @@ -45,8 +45,6 @@ static NSString *const kURLHostVerifyPrefix = @"verify"; @implementation AppDelegate -#pragma mark Detect updates - perform migrations - - (void)applicationDidEnterBackground:(UIApplication *)application { DDLogWarn(@"%@ applicationDidEnterBackground.", self.tag); } @@ -57,6 +55,16 @@ static NSString *const kURLHostVerifyPrefix = @"verify"; [[UIApplication sharedApplication] setApplicationIconBadgeNumber:0]; } +- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application +{ + DDLogWarn(@"%@ applicationDidReceiveMemoryWarning.", self.tag); +} + +- (void)applicationWillTerminate:(UIApplication *)application +{ + DDLogWarn(@"%@ applicationWillTerminate.", self.tag); +} + - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Initializing logger CategorizingLogger *logger = [CategorizingLogger categorizingLogger]; @@ -94,6 +102,8 @@ static NSString *const kURLHostVerifyPrefix = @"verify"; [DebugLogger.sharedLogger enableFileLogging]; } + DDLogWarn(@"%@ application: didFinishLaunchingWithOptions.", self.tag); + [self setupTSKitEnv]; UIStoryboard *storyboard;