mirror of
https://github.com/home-assistant/core.git
synced 2026-07-04 23:51:32 +02:00
bf5cf382dc
* Avoid useless stat() syscalls for every logger record shouldRollover will always return False since we do not use maxBytes as we are only using RotatingFileHandler for the backupCount option. Since every log record will stat the log file to see if it exists and if its a normal file, we can override the shouldRollover to reduce the logging overhead quite a bit https://github.com/python/cpython/blob/1d3225ae056245da75e4a443ccafcc8f4f982cf2/Lib/logging/handlers.py#L189 * assert False is False