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')
delete wsOps.callbacks[data.callbackID];
callback.resolve(data);
} else {
if (data.msg != 'pong') {
$log.info("Data without callback: %o", data);
};
// if pong in msg reduce pingCounter
if (msg_data.msg === 'pong') {
pingCounter -= 1;
......@@ -191,8 +193,9 @@ angular.module('ulakbus')
msg_data.cmd = 'error';
}
do_action(msg_data, msg_data.cmd);
$log.info("MESSAGE:", msg_data.cmd, event, "Data:", JSON.parse(event.data));
if (msg_data.msg != "pong"){
$log.info("MESSAGE:", event, "Data:", msg_data);
}
};
wsOps.onError = function (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