Skip to content

Commit

Permalink
fix: remove unnecessary logging from docker log
Browse files Browse the repository at this point in the history
  • Loading branch information
sbgap committed Jan 3, 2023
1 parent 864d586 commit 2f8d434
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
3 changes: 3 additions & 0 deletions uwsgi.ini
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 2f8d434

Please sign in to comment.