mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Log file now also contains warnings
This commit is contained in:
parent
7c404a0551
commit
e2b434b24e
@ -90,7 +90,7 @@ def from_config_file(config_path, hass=None, enable_logging=True):
|
||||
err_handler = logging.FileHandler(
|
||||
err_log_path, mode='w', delay=True)
|
||||
|
||||
err_handler.setLevel(logging.ERROR)
|
||||
err_handler.setLevel(logging.WARNING)
|
||||
err_handler.setFormatter(
|
||||
logging.Formatter('%(asctime)s %(name)s: %(message)s',
|
||||
datefmt='%H:%M %d-%m-%y'))
|
||||
|
Loading…
x
Reference in New Issue
Block a user