Log WS Errors to console.
This commit is contained in:
parent
302cc5985e
commit
9392395bd4
@ -26,7 +26,7 @@ const WS_IDLE_TIMEOUT = 90000;
|
||||
const MAX_PUBLISH_COMMANDS = 10;
|
||||
|
||||
/*@ngInject*/
|
||||
function TelemetryWebsocketService($rootScope, $websocket, $timeout, $window, $mdUtil, toast, types, userService) {
|
||||
function TelemetryWebsocketService($rootScope, $websocket, $timeout, $window, $mdUtil, $log, toast, types, userService) {
|
||||
|
||||
var isOpening = false,
|
||||
isOpened = false,
|
||||
@ -113,7 +113,8 @@ function TelemetryWebsocketService($rootScope, $websocket, $timeout, $window, $m
|
||||
|
||||
function onError (errorEvent) {
|
||||
if (errorEvent) {
|
||||
showWsError(0, errorEvent);
|
||||
//showWsError(0, errorEvent);
|
||||
$log.warn('WebSocket error event', errorEvent);
|
||||
}
|
||||
isOpening = false;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user