From 3b336ab076916f482e0d5660aff43c5721fdcf62 Mon Sep 17 00:00:00 2001 From: Fab Date: Tue, 20 Oct 2026 09:42:10 +0200 Subject: [PATCH] rajoute 503 dans les logs traefik --- bin/worker.py | 15 --------------- dockers/traefik/docker-compose.tmpl.yml.dist | 2 +- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/bin/worker.py b/bin/worker.py index 4e9a3f0..c029ba3 100755 --- a/bin/worker.py +++ b/bin/worker.py @@ -140,21 +140,6 @@ def send_mail(mail_file, emails): log.info("Aucun destinataire de mail valide.") return - #TEST - # annonce = ( - # "#################################################\n" - # "Pendant quelques temps, contact@kaz.bzh va recevoir les mails de modification des services.\n" - # "Vérifier le contenu du mail et si OK, le transférer à :\n" - # + "\n".join(emails) - # + "\n" - # "En supprimant bien sûr cette annonce.\n" - # "Plus tard, le mail partira directement, aussi, il faut bien le valider.\n" - # "#################################################\n" - # "\n" - # ) - # mail = annonce + mail - #FIN TEST - message = ( "From: contact@kaz.bzh\n" f"To: {', '.join(recipients)}\n" diff --git a/dockers/traefik/docker-compose.tmpl.yml.dist b/dockers/traefik/docker-compose.tmpl.yml.dist index 9c140cb..842ed73 100644 --- a/dockers/traefik/docker-compose.tmpl.yml.dist +++ b/dockers/traefik/docker-compose.tmpl.yml.dist @@ -34,7 +34,7 @@ services: - TZ=Europe/Paris - TRAEFIK_ACCESSLOG=true - TRAEFIK_ACCESSLOG_FILEPATH=/log/traefik_acces.log - - TRAEFIK_ACCESSLOG_FILTERS_STATUSCODES=404,403,401 + - TRAEFIK_ACCESSLOG_FILTERS_STATUSCODES=404,403,401,503 - TRAEFIK_LOG=true - TRAEFIK_LOG_LEVEL=INFO - TRAEFIK_LOG_FILEPATH=/log/traefik.log