Ensure verbose logging flag is respected. (#36444)

This commit is contained in:
J. Nick Koston 2020-06-04 11:51:06 -05:00 committed by GitHub
parent 7a3c2e1f6c
commit 36b157b85a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View file

@ -288,7 +288,7 @@ def async_enable_logging(
logger = logging.getLogger("")
logger.addHandler(err_handler)
logger.setLevel(logging.INFO)
logger.setLevel(logging.INFO if verbose else logging.WARNING)
# Save the log file location for access by other components.
hass.data[DATA_LOGGING] = err_log_path