1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 21:06:19 +00:00

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