Skip to content

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

Roman Azarenko requested to merge clean-up-console-logs into master

console.log outputs to stdout. This breaks CLI tools, which use stdout for outputting response JSON data.

QuickJS doesn't support console.warn/console.error. Printing to stderr can be achieved with std.err.puts() or std.err.printf().

Alternatively, this kind of output should be put behind a verbose/debug flag.

Edited by Roman Azarenko

Merge request reports