From f774b5e7c444c8b9f9f6baf0162f6d745b02a3f5 Mon Sep 17 00:00:00 2001 From: Evgenii Abramov Date: Sun, 16 May 2021 20:39:08 +0300 Subject: [PATCH] Add logging and some code improvement --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.js b/app.js index 9824aa4..5f77a44 100644 --- a/app.js +++ b/app.js @@ -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}`}); }); });