Merge branch 'charlesmchen/improveStartupLogging' into hotfix/2.16.1

pull/1/head
Matthew Chen 8 years ago
commit 8f2eb7adf1

@ -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];

Loading…
Cancel
Save