mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 14:27:07 +00:00
Set the root logger to lowest level in logger component.
In combination with resetting the log level on the handlers, this allows messages lower than the default INFO to be logged when using the logger component.
This commit is contained in:
parent
96938bb33c
commit
c31a291a9c
@ -76,6 +76,9 @@ def setup(hass, config=None):
|
||||
|
||||
logfilter[LOGGER_LOGS] = logs
|
||||
|
||||
logger = logging.getLogger('')
|
||||
logger.setLevel(logging.NOTSET)
|
||||
|
||||
# Set log filter for all log handler
|
||||
for handler in logging.root.handlers:
|
||||
handler.setLevel(logging.NOTSET)
|
||||
|
Loading…
x
Reference in New Issue
Block a user