Skip to content
Snippets Groups Projects
Commit 840a120a authored by Marin Karamihalev's avatar Marin Karamihalev
Browse files

Merge remote-tracking branch 'origin/clean-up-console-logs'

parents 3fd75a25 64104c3d
No related branches found
No related tags found
1 merge request!5Rebase with master
......@@ -18,13 +18,10 @@ class AsyncClient {
protobuf.Root.prototype.fetch = function (filename, callback) {
os.setTimeout(function () {
const data = std.loadFile(filename);
if (data === null) {
console.log("failed to load file: " + filename);
if (data === null)
callback(new Error("failed to load file: " + filename));
} else {
//console.log(`data loaded for ${filename}`)
else
callback(null, data);
}
}, 0);
};
}
......@@ -82,7 +79,6 @@ class AsyncClient {
// there is no erro handling in paho mqtt
this.client.onConnectionLost = function (responseObject) {
callback(responseObject);
console.log("USP Disconnected: ", responseObject.errorMessage);
};
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment