Show [HockeySDK] prefix on all NSLog messages

This commit is contained in:
Andreas Linde 2012-08-20 13:10:33 +02:00
parent 6b7f405868
commit 28c9480da7
3 changed files with 8 additions and 8 deletions

View File

@ -121,7 +121,7 @@
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(invokeDelayedProcessing) name:BITHockeyNetworkDidBecomeReachableNotification object:nil];
if (!BITHockeyBundle()) {
NSLog(@"WARNING: %@ is missing, will send reports automatically!", BITHOCKEYSDK_BUNDLE);
NSLog(@"[HockeySDK] WARNING: %@ is missing, will send reports automatically!", BITHOCKEYSDK_BUNDLE);
}
}
return self;
@ -447,10 +447,10 @@
@try {
// Enable the Crash Reporter
if (![crashReporter enableCrashReporterAndReturnError: &error])
NSLog(@"WARNING: Could not enable crash reporter: %@", [error localizedDescription]);
NSLog(@"[HockeySDK] WARNING: Could not enable crash reporter: %@", [error localizedDescription]);
}
@catch (NSException * e) {
NSLog(@"WARNING: %@", [e reason]);
NSLog(@"[HockeySDK] WARNING: %@", [e reason]);
}
_isSetup = YES;

View File

@ -157,7 +157,7 @@
- (void)validateStartManagerIsInvoked {
if (_validAppIdentifier && !_appStoreEnvironment) {
if (!_startManagerIsInvoked) {
NSLog(@"ERROR: You did not call [[BITHockeyManager sharedHockeyManager] startManager] to startup the HockeySDK! Please do so after setting up all properties. The SDK is NOT running.");
NSLog(@"[HockeySDK] ERROR: You did not call [[BITHockeyManager sharedHockeyManager] startManager] to startup the HockeySDK! Please do so after setting up all properties. The SDK is NOT running.");
}
}
}
@ -213,7 +213,7 @@
}
} else {
NSLog(@"ERROR: The app identifier is invalid! Please use the HockeyApp app identifier you find on the apps website on HockeyApp! The SDK is disabled!");
NSLog(@"[HockeySDK] ERROR: The app identifier is invalid! Please use the HockeyApp app identifier you find on the apps website on HockeyApp! The SDK is disabled!");
}
}

View File

@ -370,7 +370,7 @@
}
if (!BITHockeyBundle()) {
NSLog(@"WARNING: %@ is missing, make sure it is added!", BITHOCKEYSDK_BUNDLE);
NSLog(@"[HockeySDK] WARNING: %@ is missing, make sure it is added!", BITHOCKEYSDK_BUNDLE);
}
[self loadAppCache];
@ -428,7 +428,7 @@
- (void)showUpdateView {
if (_isAppStoreEnvironment) {
NSLog(@"this should not be called from an app store build.");
NSLog(@"[HockeySDK] This should not be called from an app store build!");
return;
}
@ -485,7 +485,7 @@
} else {
// if not, we add a subview to the window. A bit hacky but should work in most circumstances.
// Also, we don't get a nice animation for free, but hey, this is for beta not production users ;)
NSLog(@"Warning: No rootViewController found and no view controller set via delegate, using UIWindow-approach: %@", visibleWindow);
NSLog(@"[HockeySDK] Warning: No rootViewController found and no view controller set via delegate, using UIWindow-approach: %@", visibleWindow);
hockeyViewController.modalAnimated = NO;
[visibleWindow addSubview:_navController.view];
}