mirror of
https://github.com/lasthead0/yandex2mqtt.git
synced 2025-08-07 08:40:29 +03:00
Add logging
This commit is contained in:
@@ -39,7 +39,7 @@ module.exports.devices = [
|
||||
|
||||
res.status(200).send(r);
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
global.logger.log('error', {message: `${e}`});
|
||||
res.status(404).send(undefined);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user