Skip to content

Commit 3f3769a

Browse files
authored
Merge pull request #58 from IOT-DSA/features/timeout_ws_connection
connection error is common, print stack all the time is not necessary
2 parents 018d563 + 5c43005 commit 3f3769a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/src/http/client_link.dart

+5-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,11 @@ class HttpClientLink extends ClientLink {
205205
});
206206
await initWebsocket(false);
207207
}, onError: (e, s) {
208-
logger.warning("Client socket crashed: $e $s");
208+
if (logger.level <= Level.FINER ) {
209+
logger.warning("Client socket crashed: $e $s");
210+
} else {
211+
logger.warning("Client socket crashed: $e");
212+
}
209213
client.close();
210214
connDelay();
211215
});

0 commit comments

Comments
 (0)