]> git.parisson.com Git - teleforma.git/commitdiff
reduce asgi log level
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 27 Jun 2022 23:05:23 +0000 (01:05 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Mon, 27 Jun 2022 23:05:23 +0000 (01:05 +0200)
app/asgi.sh

index c795f150b999c2f04d2d871421ae16c3c612beba..d65217983c9974f7d02c99afc99d887a18bd46af 100755 (executable)
@@ -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