mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 06:07:17 +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
|
# 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