1. José Manuel Sánchez Peñarroja
  2. CrashlyticsLumberjack

Commits

José Manuel Sánchez Peñarroja  committed cccde5d

Prevent errors if crashlytics is not being used

  • Participants
  • Parent commits f1c0d3b
  • Branches master

Comments (0)

Files changed (1)

File Source/CrashlyticsLogger.m

View file
  • Ignore whitespace
 
 #import "CrashlyticsLogger.h"
 
+#ifdef CLS_LOG
 OBJC_EXTERN void CLSLog(NSString *format, ...) NS_FORMAT_FUNCTION(1,2);
+#endif
 
 @implementation CrashlyticsLogger
 
     
     if (logMsg)
     {
+		#ifdef CLS_LOG
         CLSLog(@"%@",logMsg);
+		#endif
     }
 }