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>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-11 02:15:01 +00:00
committed by GitHub
parent d6036cb5ef
commit 6e2f502b67
2 changed files with 4 additions and 3 deletions

View File

@@ -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 <<EOF
[loggers]
keys=root,gunicorn,error
@@ -131,7 +132,7 @@ 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
EOF