From ad20d239bfd41f1d3b4201286b18b2a6009c5818 Mon Sep 17 00:00:00 2001 From: lau90eth Date: Wed, 28 Jan 2026 11:35:53 +0100 Subject: [PATCH] chore(logging): enable rotated logging for supervisord with 50MB max and 10 backups Replaces /dev/null with a proper logfile in /var/log/supervisord/supervisord.log, adds rotation and info loglevel. Improves debugging for supervisord events without affecting container stdout logs. --- supervisord.conf | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/supervisord.conf b/supervisord.conf index 8021dce1..0103078a 100644 --- a/supervisord.conf +++ b/supervisord.conf @@ -1,18 +1,20 @@ [supervisord] nodaemon=true -logfile=/dev/null -logfile_maxbytes=0 +logfile=/var/log/supervisord/supervisord.log ; file principale per log di supervisord +logfile_maxbytes=50MB ; ruota quando supera 50MB +logfile_backups=10 ; tieni 10 backup (supervisord.log.1 ... .10) +loglevel=info ; livello: info (normale), riduce rumore ma utile [program:op-node] command=/app/op-node-entrypoint -stdout_logfile=/dev/fd/1 -stdout_logfile_maxbytes=0 +stdout_logfile=/dev/fd/1 ; mantieni stdout su container (docker logs) +stdout_logfile_maxbytes=0 ; no rotation su stdout (Docker gestisce) redirect_stderr=true stopwaitsecs=300 [program:op-execution] command=/app/execution-entrypoint -stdout_logfile=/dev/fd/1 -stdout_logfile_maxbytes=0 +stdout_logfile=/dev/fd/1 ; mantieni stdout su container +stdout_logfile_maxbytes=0 ; no rotation su stdout redirect_stderr=true stopwaitsecs=300