From 7086153d4606cd5c68edff29eb1cebcda16cbfb0 Mon Sep 17 00:00:00 2001 From: Andreas Linde Date: Fri, 24 Jan 2014 14:11:41 +0100 Subject: [PATCH] Make sure a log message appears in the console if the SDK is not setup on the main thread --- Classes/BITHockeyManager.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/BITHockeyManager.m b/Classes/BITHockeyManager.m index e8f2f9108c..19c5c6303a 100644 --- a/Classes/BITHockeyManager.m +++ b/Classes/BITHockeyManager.m @@ -503,12 +503,13 @@ #endif /* HOCKEYSDK_FEATURE_UPDATES */ - (BOOL)isSetUpOnMainThread { - NSString *errorString = @"ERROR: This SDK has to be setup on the main thread!"; + NSString *errorString = @"ERROR: HockeySDK has to be setup on the main thread!"; if (!NSThread.isMainThread) { if (self.isAppStoreEnvironment) { BITHockeyLog(@"%@", errorString); } else { + NSLog(@"%@", errorString); NSAssert(NSThread.isMainThread, errorString); }