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