From b5258be9b5ee8a99922709d81c035710c266b174 Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Fri, 6 Oct 2017 18:07:37 -0400 Subject: [PATCH] respond to code review // FREEBIE --- Signal/src/AppDelegate.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Signal/src/AppDelegate.m b/Signal/src/AppDelegate.m index 68ffd9e21..77bd15809 100644 --- a/Signal/src/AppDelegate.m +++ b/Signal/src/AppDelegate.m @@ -271,13 +271,13 @@ static NSString *const kURLHostVerifyPrefix = @"verify"; - (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken { - DDLogDebug(@"%@ registered vanilla push token: %@", self.tag, deviceToken); + DDLogInfo(@"%@ registered vanilla push token: %@", self.tag, deviceToken); [PushManager.sharedManager.pushNotificationFutureSource trySetResult:deviceToken]; } - (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error { - DDLogDebug(@"%@ failed to register vanilla push token with error: %@", self.tag, error); + DDLogError(@"%@ failed to register vanilla push token with error: %@", self.tag, error); #ifdef DEBUG DDLogWarn(@"%@ We're in debug mode. Faking success for remote registration with a fake push identifier", self.tag); [PushManager.sharedManager.pushNotificationFutureSource trySetResult:[[NSMutableData dataWithLength:32] copy]]; @@ -290,7 +290,7 @@ static NSString *const kURLHostVerifyPrefix = @"verify"; - (void)application:(UIApplication *)application didRegisterUserNotificationSettings:(UIUserNotificationSettings *)notificationSettings { - DDLogDebug(@"%@ registered user notification settings", self.tag); + DDLogInfo(@"%@ registered user notification settings", self.tag); [PushManager.sharedManager.userNotificationFutureSource trySetResult:notificationSettings]; }