From 3522c52a9e2c7a7b293612e3c8e09d0def1e9bde Mon Sep 17 00:00:00 2001 From: Jonny Burger Date: Mon, 24 Jun 2019 20:14:39 +0200 Subject: [PATCH 1/2] Update RCTLog.mm --- React/Base/RCTLog.mm | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/React/Base/RCTLog.mm b/React/Base/RCTLog.mm index dd11bc38b00e8a..6ea2fe2406a39c 100644 --- a/React/Base/RCTLog.mm +++ b/React/Base/RCTLog.mm @@ -56,26 +56,6 @@ void RCTSetLogThreshold(RCTLogLevel threshold) { NSString *log = RCTFormatLog([NSDate date], level, fileName, lineNumber, message); fprintf(stderr, "%s\n", log.UTF8String); fflush(stderr); - - int aslLevel; - switch(level) { - case RCTLogLevelTrace: - aslLevel = ASL_LEVEL_DEBUG; - break; - case RCTLogLevelInfo: - aslLevel = ASL_LEVEL_NOTICE; - break; - case RCTLogLevelWarning: - aslLevel = ASL_LEVEL_WARNING; - break; - case RCTLogLevelError: - aslLevel = ASL_LEVEL_ERR; - break; - case RCTLogLevelFatal: - aslLevel = ASL_LEVEL_CRIT; - break; - } - asl_log(NULL, NULL, aslLevel, "%s", message.UTF8String); }; void RCTSetLogFunction(RCTLogFunction logFunction) From 7531751ca9886a773e83cbff065e81e629d11790 Mon Sep 17 00:00:00 2001 From: Jonny Burger Date: Mon, 24 Jun 2019 20:31:01 +0200 Subject: [PATCH 2/2] Update RCTLog.mm --- React/Base/RCTLog.mm | 1 - 1 file changed, 1 deletion(-) diff --git a/React/Base/RCTLog.mm b/React/Base/RCTLog.mm index 6ea2fe2406a39c..fa2f5446791ba0 100644 --- a/React/Base/RCTLog.mm +++ b/React/Base/RCTLog.mm @@ -7,7 +7,6 @@ #import "RCTLog.h" -#include #include #import "RCTAssert.h"