mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 23:27:37 +00:00
Merge pull request #790 from andythigpen/logger-fix
Reset log handlers to lowest level.
This commit is contained in:
commit
6ccf63dae2
@ -78,6 +78,7 @@ def setup(hass, config=None):
|
|||||||
|
|
||||||
# Set log filter for all log handler
|
# Set log filter for all log handler
|
||||||
for handler in logging.root.handlers:
|
for handler in logging.root.handlers:
|
||||||
|
handler.setLevel(logging.NOTSET)
|
||||||
handler.addFilter(HomeAssistantLogFilter(logfilter))
|
handler.addFilter(HomeAssistantLogFilter(logfilter))
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user