diff --git a/Signal/src/AppDelegate.m b/Signal/src/AppDelegate.m index 9a3509083..d4e1e9383 100644 --- a/Signal/src/AppDelegate.m +++ b/Signal/src/AppDelegate.m @@ -105,6 +105,8 @@ static NSString *const kURLHostVerifyPrefix = @"verify"; [AppVersion instance]; + [self startupLogging]; + // Set the seed the generator for rand(). // // We should always use arc4random() instead of rand(), but we @@ -167,6 +169,24 @@ static NSString *const kURLHostVerifyPrefix = @"verify"; return YES; } +- (void)startupLogging +{ + DDLogInfo(@"iOS Version: %@", [UIDevice currentDevice].systemVersion); + + NSString *localeIdentifier = [NSLocale.currentLocale objectForKey:NSLocaleIdentifier]; + if (localeIdentifier.length > 0) { + DDLogInfo(@"Locale Identifier: %@", localeIdentifier); + } + NSString *countryCode = [NSLocale.currentLocale objectForKey:NSLocaleCountryCode]; + if (countryCode.length > 0) { + DDLogInfo(@"Country Code: %@", countryCode); + } + NSString *languageCode = [NSLocale.currentLocale objectForKey:NSLocaleLanguageCode]; + if (languageCode.length > 0) { + DDLogInfo(@"Language Code: %@", languageCode); + } +} + - (UIViewController *)loadingRootViewController { UIViewController *viewController = @@ -778,6 +798,10 @@ static NSString *const kURLHostVerifyPrefix = @"verify"; { DDLogInfo(@"databaseViewRegistrationComplete"); + if ([TSAccountManager isRegistered]) { + DDLogInfo(@"localNumber: %@", [TSAccountManager localNumber]); + } + [DeviceSleepManager.sharedInstance removeBlockWithBlockObject:self]; [AppVersion.instance appLaunchDidComplete];