mirror of
https://github.com/rommapp/romm.git
synced 2026-06-28 06:46:00 +00:00
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:
committed by
GitHub
parent
d6036cb5ef
commit
6e2f502b67
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user