Commit cefecbf2 authored by Vladimir Baranov's avatar Vladimir Baranov

Remove unnecessary debug from socket.js

parent d0f42598
...@@ -116,7 +116,9 @@ angular.module('ulakbus') ...@@ -116,7 +116,9 @@ angular.module('ulakbus')
delete wsOps.callbacks[data.callbackID]; delete wsOps.callbacks[data.callbackID];
callback.resolve(data); callback.resolve(data);
} else { } else {
if (data.msg != 'pong') {
$log.info("Data without callback: %o", data); $log.info("Data without callback: %o", data);
};
// if pong in msg reduce pingCounter // if pong in msg reduce pingCounter
if (msg_data.msg === 'pong') { if (msg_data.msg === 'pong') {
pingCounter -= 1; pingCounter -= 1;
...@@ -191,8 +193,9 @@ angular.module('ulakbus') ...@@ -191,8 +193,9 @@ angular.module('ulakbus')
msg_data.cmd = 'error'; msg_data.cmd = 'error';
} }
do_action(msg_data, msg_data.cmd); do_action(msg_data, msg_data.cmd);
if (msg_data.msg != "pong"){
$log.info("MESSAGE:", msg_data.cmd, event, "Data:", JSON.parse(event.data)); $log.info("MESSAGE:", event, "Data:", msg_data);
}
}; };
wsOps.onError = function (evt) { wsOps.onError = function (evt) {
$log.error("ERROR :: " + evt); $log.error("ERROR :: " + evt);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment