From 7d63f1dbf0a67495e6b1563857479e72dfeb3a50 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Tue, 6 Jan 2015 10:21:48 -0500 Subject: [PATCH] Socket.js error message I've added an error message to be posted to the javascript console anytime the socket service has an error. This should help in debugging issues down the line. --- awx/ui/static/lib/ansible/Socket.js | 1 + 1 file changed, 1 insertion(+) diff --git a/awx/ui/static/lib/ansible/Socket.js b/awx/ui/static/lib/ansible/Socket.js index e077175ca4..35a378c86c 100644 --- a/awx/ui/static/lib/ansible/Socket.js +++ b/awx/ui/static/lib/ansible/Socket.js @@ -115,6 +115,7 @@ angular.module('SocketIO', ['AuthService', 'Utilities']) self.socket.on('error', function(reason) { var r = reason || 'connection refused by host'; $log.debug('Socket error: ' + r); + $log.error('Socket error: ' + r); self.scope.$apply(function() { self.scope.socketStatus = 'error'; self.scope.socketTip = getSocketTip(self.scope.socketStatus);