From b55c779d43bb13cbf021dfbc007b5d201e3dd1aa Mon Sep 17 00:00:00 2001 From: sky Date: Sun, 14 Sep 2025 03:48:21 +0200 Subject: [PATCH] Ajoute date et heure dans log --- start.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/start.sh b/start.sh index aeb05f3..d66e5c0 100644 --- a/start.sh +++ b/start.sh @@ -1,4 +1,6 @@ #!/bin/bash echo "Démarrage du bot Discord..." -exec /app/venv/bin/python run-web.py 2>&1 | tee >(rotatelogs /app/logs/app.log.%Y%m%d-%H%M%S 50M) \ No newline at end of file +exec /app/venv/bin/python run-web.py 2>&1 | while IFS= read -r line; do + echo "$(date '+%Y-%m-%d %H:%M:%S%z') $line" | tee -a /app/logs/$(hostname).log # RFC 3339 / ISO 8601 +done \ No newline at end of file