mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Reset log handlers to lowest level.
This is necessary to enable logging lower than INFO for the error log file.
This commit is contained in:
parent
7ccb6b960c
commit
edff53609f
@ -78,6 +78,7 @@ def setup(hass, config=None):
|
||||
|
||||
# Set log filter for all log handler
|
||||
for handler in logging.root.handlers:
|
||||
handler.setLevel(logging.NOTSET)
|
||||
handler.addFilter(HomeAssistantLogFilter(logfilter))
|
||||
|
||||
return True
|
||||
|
Loading…
x
Reference in New Issue
Block a user