fix: ensure shared log volume mount by default and disable container-side rotation

This commit is contained in:
2026-04-08 01:42:05 -04:00
parent 32b06afef6
commit 6bdb5922fa
2 changed files with 3 additions and 7 deletions

View File

@@ -103,10 +103,8 @@ def _get_file_logger() -> logging.Logger:
log_path = Path(os.environ.get(_LOG_FILE_ENV, _DEFAULT_LOG_FILE))
try:
log_path.parent.mkdir(parents=True, exist_ok=True)
handler = logging.handlers.RotatingFileHandler(
handler = logging.FileHandler(
log_path,
maxBytes=_MAX_BYTES,
backupCount=_BACKUP_COUNT,
encoding="utf-8",
)
except OSError:
@@ -132,10 +130,8 @@ def _get_json_logger() -> logging.Logger:
json_path = Path(log_path_str).with_suffix(".json")
try:
json_path.parent.mkdir(parents=True, exist_ok=True)
handler = logging.handlers.RotatingFileHandler(
handler = logging.FileHandler(
json_path,
maxBytes=_MAX_BYTES,
backupCount=_BACKUP_COUNT,
encoding="utf-8",
)
except OSError: