mikejac/node-red-contrib-google-smarthome

daemon.log growing faster

Closed this issue · 2 comments

hello, fist of all thank for this very useful and very well done project, i really love to use it and it works great!!!
i have a small issue about logs that this contrib generate with normal usage:
i have nodered 2.1.4 installed on my RPI 3 (buster) and i'm using google-smarthome version 0.3.9
i have disable the Node Debug inside management node
but i see that /var(log(daemon.log ans syslog are growing faster with these messages:

Jan 11 00:43:56 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 44.393 ms - 1744#033[0m
Jan 11 00:44:40 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 51.469 ms - 1744#033[0m
Jan 11 00:44:56 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 21.823 ms - 1744#033[0m
Jan 11 00:45:40 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 69.048 ms - 1744#033[0m
Jan 11 00:45:56 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 24.166 ms - 1744#033[0m
Jan 11 00:46:40 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 49.509 ms - 1744#033[0m
Jan 11 00:46:56 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 26.931 ms - 1744#033[0m
Jan 11 00:47:40 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 33.857 ms - 1744#033[0m
Jan 11 00:47:57 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 35.541 ms - 1744#033[0m
Jan 11 00:48:40 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 35.871 ms - 1744#033[0m
Jan 11 00:48:57 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 37.296 ms - 1744#033[0m
Jan 11 00:49:40 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 73.384 ms - 1744#033[0m
Jan 11 00:49:57 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 32.310 ms - 1744#033[0m
Jan 11 00:50:40 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 35.188 ms - 1744#033[0m
Jan 11 00:50:57 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 35.808 ms - 1744#033[0m
Jan 11 00:51:40 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 46.252 ms - 1744#033[0m
Jan 11 00:51:57 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 20.550 ms - 1744#033[0m
Jan 11 00:52:40 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 21.657 ms - 1744#033[0m
Jan 11 00:52:57 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 45.754 ms - 1744#033[0m
Jan 11 00:53:40 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 65.891 ms - 1744#033[0m
Jan 11 00:53:57 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 20.591 ms - 1744#033[0m
Jan 11 00:54:40 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 28.632 ms - 1744#033[0m
Jan 11 00:54:57 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 43.119 ms - 1744#033[0m
Jan 11 00:55:40 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 35.110 ms - 1744#033[0m
Jan 11 00:55:57 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 40.711 ms - 1744#033[0m
Jan 11 00:56:40 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 44.077 ms - 1744#033[0m
Jan 11 00:56:57 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 43.491 ms - 1744#033[0m
Jan 11 00:57:40 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 41.928 ms - 1744#033[0m
Jan 11 00:57:57 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 32.086 ms - 1744#033[0m
Jan 11 00:58:40 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 25.526 ms - 1744#033[0m
Jan 11 00:58:57 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 28.227 ms - 1744#033[0m
Jan 11 00:59:40 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 36.479 ms - 1744#033[0m
Jan 11 00:59:57 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 23.083 ms - 1744#033[0m
Jan 11 01:00:40 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 28.816 ms - 1744#033[0m
Jan 11 01:00:57 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 24.626 ms - 1744#033[0m
Jan 11 01:01:40 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 31.156 ms - 1744#033[0m
Jan 11 01:01:57 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 25.517 ms - 1744#033[0m
Jan 11 01:02:40 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 29.803 ms - 1744#033[0m
Jan 11 01:02:57 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 43.779 ms - 1744#033[0m
Jan 11 01:03:40 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 24.550 ms - 1744#033[0m
Jan 11 01:03:57 raspberrypi Node-RED[317]: #033[0mPOST /smarthome #033[32m200#033[0m 32.720 ms - 1744#033[0m

why this happen? how i can avoid it?
of course i disable all my debug nodes and also node.warn inside my functions.
thanks

Hi

Looks like the request logging with morgan. This was fixed a while ago. Upgrade to at least version 0.3.11.

If you don't want to upgrade, make the changes listed in 76ab1b9 or delete the lines mentioning "morgan" in lib/Smarthome.js

Hi

Looks like the request logging with morgan. This was fixed a while ago. Upgrade to at least version 0.3.11.

If you don't want to upgrade, make the changes listed in 76ab1b9 or delete the lines mentioning "morgan" in lib/Smarthome.js

hello, thanks for your answer, i upgraded some days ago to latest version node-red-contrib-google-smarthome and i can confirm that the issue is now fixed.
thanks so much for your job!