Skip to content

Commit

Permalink
fix crash in device
Browse files Browse the repository at this point in the history
  • Loading branch information
zxm9988 committed Aug 29, 2016
1 parent 1b69e58 commit 60ae293
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 60ae293

Please sign in to comment.