summaryrefslogtreecommitdiff
path: root/dockerfiles
diff options
context:
space:
mode:
authorAlexandre Flament <alex@al-f.net>2022-03-19 12:27:46 +0100
committerAlexandre Flament <alex@al-f.net>2022-03-19 13:47:45 +0100
commit12d3fe32147d43446fa6d7fcd56252eebac5ecb4 (patch)
tree0fb1e00201b6dcf96e79b54d464b745599c5adea /dockerfiles
parent6ccd557650a0892a3c59ac157a781f9a12beb56e (diff)
docker: log to stdout
previously the log (only the exceptions) were log into /var/log/uwsgi/uwsgi.log this is disturbing for the admins: * they see an internal error on HTTP port * no log where they are expected (docker logs) this commit fixes this issue
Diffstat (limited to 'dockerfiles')
-rwxr-xr-xdockerfiles/docker-entrypoint.sh2
-rw-r--r--dockerfiles/uwsgi.ini9
2 files changed, 2 insertions, 9 deletions
diff --git a/dockerfiles/docker-entrypoint.sh b/dockerfiles/docker-entrypoint.sh
index 9195ff30..127512ff 100755
--- a/dockerfiles/docker-entrypoint.sh
+++ b/dockerfiles/docker-entrypoint.sh
@@ -165,8 +165,6 @@ if [ $DRY_RUN -eq 1 ]; then
exit
fi
-touch /var/run/uwsgi-logrotate
-chown -R searxng:searxng /var/log/uwsgi /var/run/uwsgi-logrotate
unset MORTY_KEY
# Start uwsgi
diff --git a/dockerfiles/uwsgi.ini b/dockerfiles/uwsgi.ini
index f35e2308..75747995 100644
--- a/dockerfiles/uwsgi.ini
+++ b/dockerfiles/uwsgi.ini
@@ -27,18 +27,13 @@ chdir = /usr/local/searxng/searx/
# automatically set processes name to something meaningful
auto-procname = true
-# Disable logging for privacy
+# Disable request logging for privacy
disable-logging = true
+log-5xx = true
# Set the max size of a request (request-body excluded)
buffer-size = 8192
-# But keep errors for 2 days
-touch-logrotate = /run/uwsgi-logrotate
-unique-cron = 15 0 -1 -1 -1 { touch /run/uwsgi-logrotate }
-log-backupname = /var/log/uwsgi/uwsgi.log.1
-logto = /var/log/uwsgi/uwsgi.log
-
# No keep alive
# See https://github.com/searx/searx-docker/issues/24
add-header = Connection: close