tlskinneriv / hassio-addons

MIT License
8 stars 3 forks source link

Stop wsgiref.simple_server from logging to stderr by default. #14

Closed jruby411 closed 6 months ago

jruby411 commented 6 months ago

I have my weather station set to send data to Home Assistant every 16 seconds. This was needlessly filling up the log with useless information and by-passing the python logging module.

The default wsgiref.simple_server sends every request to stderr, actually, not to python logging module.

So, I followed the advice given here:

Control wsgiref.simple_server log

tlskinneriv commented 6 months ago

Thanks for the PR! Will take a deeper look this weekend and get the change merged in.