Skip to content
Snippets Groups Projects

quickjs: remove console.log calls in async-mqtt.js

Merged Roman Azarenko requested to merge clean-up-console-logs into master
1 file
+ 2
6
Compare changes
  • Side-by-side
  • Inline
@@ -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);
};
}
}
Loading