From 120cd0829562400f04aa86274010fe75a825a7d3 Mon Sep 17 00:00:00 2001 From: Manuel Kaufmann Date: Wed, 6 Mar 2024 16:48:02 +0100 Subject: [PATCH] Development: reduce gunicorn loglevel Remove a bunch of these following lines when modifying a file. ``` proxito_1 | [2024-03-06 15:32:58 +0000] [22] [ERROR] Worker (pid:23) was sent SIGTERM! proxito_1 | [2024-03-06 15:32:58 +0000] [22] [ERROR] Worker (pid:24) was sent SIGTERM! ``` --- dockerfiles/entrypoints/proxito.sh | 2 +- dockerfiles/entrypoints/web.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dockerfiles/entrypoints/proxito.sh b/dockerfiles/entrypoints/proxito.sh index 6637bd5..3d881a0 100755 --- a/dockerfiles/entrypoints/proxito.sh +++ b/dockerfiles/entrypoints/proxito.sh @@ -2,7 +2,7 @@ ../../docker/common.sh -CMD="gunicorn readthedocs.wsgi:application -w 3 -b 0.0.0.0:8000 --max-requests=10000 --timeout=0" +CMD="gunicorn readthedocs.wsgi:application -w 3 -b 0.0.0.0:8000 --log-level=CRITICAL --max-requests=10000 --timeout=0" if [ -n "${DOCKER_NO_RELOAD}" ]; then echo "Running process with no reload" diff --git a/dockerfiles/entrypoints/web.sh b/dockerfiles/entrypoints/web.sh index 2217a22..6820a6b 100755 --- a/dockerfiles/entrypoints/web.sh +++ b/dockerfiles/entrypoints/web.sh @@ -13,7 +13,7 @@ then python3 manage.py loaddata test_data fi -CMD="gunicorn readthedocs.wsgi:application -w 3 -b 0.0.0.0:8000 --max-requests=10000 --timeout=0" +CMD="gunicorn readthedocs.wsgi:application -w 3 -b 0.0.0.0:8000 --log-level=CRITICAL --max-requests=10000 --timeout=0" if [ -n "${DOCKER_NO_RELOAD}" ]; then echo "Running process with no reload"