mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 21:55:10 +02:00
Update homeassistant/bootstrap.py
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
@@ -623,7 +623,7 @@ async def async_enable_logging(
|
|||||||
default_log_path = hass.config.path(ERROR_LOG_FILENAME)
|
default_log_path = hass.config.path(ERROR_LOG_FILENAME)
|
||||||
if "SUPERVISOR" in os.environ:
|
if "SUPERVISOR" in os.environ:
|
||||||
_LOGGER.info("Running in Supervisor, not logging to file")
|
_LOGGER.info("Running in Supervisor, not logging to file")
|
||||||
# Delete the default log file if it exists, since previous versions created
|
# Rename the default log file if it exists, since previous versions created
|
||||||
# it even on Supervisor
|
# it even on Supervisor
|
||||||
if os.path.isfile(default_log_path):
|
if os.path.isfile(default_log_path):
|
||||||
with contextlib.suppress(OSError):
|
with contextlib.suppress(OSError):
|
||||||
|
Reference in New Issue
Block a user