From: Guillaume Pellerin Date: Mon, 27 Jun 2022 23:05:23 +0000 (+0200) Subject: reduce asgi log level X-Git-Tag: 2.7.1~28 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=61ac33add35ac6c15e78a471ae015fbaf56a2145;p=teleforma.git reduce asgi log level --- diff --git a/app/asgi.sh b/app/asgi.sh index c795f150..d6521798 100755 --- a/app/asgi.sh +++ b/app/asgi.sh @@ -8,7 +8,7 @@ media='/srv/media/' src='/srv/src/' workers=8 sock=/var/run/app/asgi.sock - +loglevel=error #Options: 'critical', 'error', 'warning', 'info', 'debug', 'trace'. if [ "$1" = "--runserver" ]; then python $manage runserver 0.0.0.0:8000 @@ -17,7 +17,7 @@ else # watchmedo shell-command --patterns="$patterns" --recursive \ # --command='python '$manage' collectstatic --noinput' $app & #daphne -b 0.0.0.0 -p 8000 asgi:application - uvicorn asgi:application --uds $sock --log-level info --workers $workers --ws websockets + uvicorn asgi:application --uds $sock --log-level $loglevel --workers $workers --ws websockets fi