Skip to content

Commit

Permalink
Merge pull request #27 from zxm9988/master
Browse files Browse the repository at this point in the history
Fix crash on device in BFLog
  • Loading branch information
FabrizioBrancati authored Aug 29, 2016
2 parents 1b69e58 + 60ae293 commit 21f8b12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/BFKit/BFLog.m
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ void ExtendNSLog(const char * _Nonnull file, int lineNumber, const char * _Nonnu
NSString *log = [NSString stringWithFormat:@"%s:%d %s: %s", [fileName UTF8String], lineNumber, [functionName UTF8String], [body UTF8String]];
fprintf(stderr, "%s %s:%d %s: %s", [[NSDate dateInformationDescriptionWithInformation:[[NSDate date] dateInformation] dateSeparator:@"-" usFormat:YES nanosecond:YES] UTF8String], [fileName UTF8String], lineNumber, [functionName UTF8String], [body UTF8String]);

logString = [logString stringByAppendingString:[NSString stringWithFormat:@"%@", body]];
logString = [NSString stringWithFormat:@"%@,%@",logString,body];

logDetailedString = [logDetailedString stringByAppendingString:[NSString stringWithFormat:@"%@", log]];
logDetailedString = [NSString stringWithFormat:@"%@,%@",logDetailedString,log];
}

+ (NSString * _Nonnull)logString {
Expand Down

0 comments on commit 21f8b12

Please sign in to comment.