From 2f8d43453ff9dc6c71f9bce5f36c9851bb35a028 Mon Sep 17 00:00:00 2001 From: sbgap Date: Tue, 3 Jan 2023 08:43:49 +0100 Subject: [PATCH] fix: remove unnecessary logging from docker log --- Dockerfile | 5 ++++- supervisord.conf | 2 ++ uwsgi.ini | 3 +++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9c8dc773..302579cf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,6 +49,9 @@ RUN apt-get update && \ postgresql-client \ python3-dev \ supervisor \ + libpcre3 \ + libpcre3-dev \ + ca-certificates \ xmlsec1 && \ apt-get -y clean && \ apt-get -y autoremove && \ @@ -119,7 +122,7 @@ ENV HEARTBEAT_SEVERITY major ENV HK_EXPIRED_DELETE_HRS 2 ENV HK_INFO_DELETE_HRS 12 -ENV SUPERVISORD_LOG_LEVEL DEBUG +ENV SUPERVISORD_LOG_LEVEL WARN COPY docker-entrypoint.sh /usr/local/bin/ COPY supervisord.conf /app/supervisord.conf diff --git a/supervisord.conf b/supervisord.conf index a32fa3a6..4a24b56c 100644 --- a/supervisord.conf +++ b/supervisord.conf @@ -6,6 +6,8 @@ pidfile=/tmp/supervisord.pid [program:uwsgi] command=/venv/bin/uwsgi --ini /app/uwsgi.ini +stdout_logfile = /dev/stdout +stdout_logfile_maxbytes = 0 redirect_stderr=true [program:nginx] diff --git a/uwsgi.ini b/uwsgi.ini index 27a72095..b8f379a5 100644 --- a/uwsgi.ini +++ b/uwsgi.ini @@ -1,10 +1,13 @@ [uwsgi] +logger = info file:/tmp/uswgi.log +log-route = info ^\D chdir = /app module = wsgi manage-script-name = true mount = /api=wsgi:app master = true processes = 5 +enable-threads = true socket = /tmp/uwsgi.sock buffer-size = 8192