Add logging and some code improvement

This commit is contained in:
Evgenii Abramov
2021-05-16 20:39:08 +03:00
parent 4e108d3e57
commit f774b5e7c4

2
app.js
View File

@@ -152,7 +152,7 @@ global.mqttClient = mqtt.connect(`mqtt://${config.mqtt.host}`, {
}
}, res => {
res.on('data', d => {
global.logger.log('error', {message: `${d}`});
global.logger.log('info', {message: `${d}`});
});
});