mirror of
https://github.com/skylanix/MamieHenriette.git
synced 2026-02-06 14:50:34 +01:00
Ajoute date et heure dans log
This commit is contained in:
4
start.sh
4
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)
|
||||
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
|
||||
Reference in New Issue
Block a user