From 6e2f502b67c36453427122fdbb4bd90acedfaa84 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 11 Apr 2026 02:15:01 +0000 Subject: [PATCH] fix: use dynamic log level in gunicorn format and add auto-generated comment Agent-Logs-Url: https://github.com/rommapp/romm/sessions/0b5ef21c-89e1-4f08-b402-03f3276aab08 Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com> --- docker/gunicorn/logging.conf | 2 +- docker/init_scripts/init | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docker/gunicorn/logging.conf b/docker/gunicorn/logging.conf index e16918592..936958657 100644 --- a/docker/gunicorn/logging.conf +++ b/docker/gunicorn/logging.conf @@ -34,5 +34,5 @@ args=(sys.stdout,) # Formatter for Gunicorn logs [formatter_gunicorn_format] -format=INFO: [RomM][gunicorn][%(asctime)s] %(message)s +format=%(levelname)s: [RomM][gunicorn][%(asctime)s] %(message)s datefmt=%Y-%m-%d %H:%M:%S diff --git a/docker/init_scripts/init b/docker/init_scripts/init index f6ea88f6f..2d8300d7a 100755 --- a/docker/init_scripts/init +++ b/docker/init_scripts/init @@ -93,7 +93,8 @@ start_bin_gunicorn() { # cleanup potentially leftover socket rm /tmp/gunicorn.sock -f - # Generate gunicorn logging config with the configured log level + # Generate gunicorn logging config with the configured log level. + # Note: this file is auto-generated at startup; do not modify /etc/gunicorn/logging.conf directly. cat >/etc/gunicorn/logging.conf <