Skip to content

Commit

Permalink
Change how gunicorn log level is set
Browse files Browse the repository at this point in the history
  • Loading branch information
bkis committed Jun 10, 2024
1 parent c273506 commit 8e7263b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Tekst-API/deployment/gunicorn/gunicorn_conf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import multiprocessing
import os


bind = "0.0.0.0:8000"
Expand All @@ -7,4 +8,4 @@
worker_tmp_dir = "/dev/shm"
preload_app = True
timeout = 240 # this has to be quite long as the workers also generate export data etc.
loglevel = "info" # will be overridden by app config
loglevel = os.environ.get("TEKST_LOG_LEVEL", "INFO").upper()

0 comments on commit 8e7263b

Please sign in to comment.