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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue