mirror of
https://github.com/home-assistant/core.git
synced 2025-08-01 03:35:09 +02:00
Do not force logfile to roll over when using TimedRotatingFileHandler (#128301)
Do not force log file to roll over when using TimedRotatingFileHandler
This commit is contained in:
@@ -664,11 +664,10 @@ def _create_log_file(
|
|||||||
err_handler = _RotatingFileHandlerWithoutShouldRollOver(
|
err_handler = _RotatingFileHandlerWithoutShouldRollOver(
|
||||||
err_log_path, backupCount=1
|
err_log_path, backupCount=1
|
||||||
)
|
)
|
||||||
|
try:
|
||||||
try:
|
err_handler.doRollover()
|
||||||
err_handler.doRollover()
|
except OSError as err:
|
||||||
except OSError as err:
|
_LOGGER.error("Error rolling over log file: %s", err)
|
||||||
_LOGGER.error("Error rolling over log file: %s", err)
|
|
||||||
|
|
||||||
return err_handler
|
return err_handler
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user