Refactored RCTLog and added facility to prepend extra data to the log message

This commit is contained in:
Nick Lockwood
2015-04-07 07:36:26 -07:00
parent 5b3e935332
commit 80cd687e95
15 changed files with 411 additions and 179 deletions

View File

@@ -119,7 +119,9 @@ typedef void (^WSMessageCallback)(NSError *error, NSDictionary *reply);
[_jsQueue addOperationWithBlock:^{
if (!self.valid) {
NSError *error = [NSError errorWithDomain:@"WS" code:1 userInfo:@{NSLocalizedDescriptionKey:@"socket closed"}];
NSError *error = [NSError errorWithDomain:@"WS" code:1 userInfo:@{
NSLocalizedDescriptionKey: @"socket closed"
}];
callback(error, nil);
return;
}