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.
pull/791/head
Andrew Thigpen 2015-12-23 00:57:41 -06:00
parent 96938bb33c
commit c31a291a9c
1 changed files with 3 additions and 0 deletions

View File

@ -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)