Ensure verbose logging flag is respected. (#36444)
This commit is contained in:
parent
7a3c2e1f6c
commit
36b157b85a
2 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue