mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix RCTInspectorPackagerConnection logspam for real
Reviewed By: danzimm Differential Revision: D6486113 fbshipit-source-id: f6e661ce95ae89bafce9e0d773b484b28e4f83c4
This commit is contained in:
committed by
Facebook Github Bot
parent
830b431453
commit
b1701ccaef
@@ -272,7 +272,10 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init)
|
||||
- (void)abort:(NSString *)message
|
||||
withCause:(NSError *)cause
|
||||
{
|
||||
RCTLogTrace(@"Error occurred, shutting down websocket connection: %@ %@", message, cause);
|
||||
// Don't log ECONNREFUSED at all; it's expected in cases where the server isn't listening.
|
||||
if (![cause.domain isEqual:NSPOSIXErrorDomain] || cause.code != ECONNREFUSED) {
|
||||
RCTLogInfo(@"Error occurred, shutting down websocket connection: %@ %@", message, cause);
|
||||
}
|
||||
|
||||
[self closeAllConnections];
|
||||
[self disposeWebSocket];
|
||||
|
||||
Reference in New Issue
Block a user