From d3c8a7a64d4e19d436e2c85f0d4e1020a50be022 Mon Sep 17 00:00:00 2001 From: Adrian Schmutzler Date: Wed, 11 Jul 2018 11:21:55 +0200 Subject: [PATCH] uwsgi: Suppress logging every request Errors (Status 4xx/5xx) will still be logged. Signed-off-by: Adrian Schmutzler --- ffmap/systemd/uwsgi-ffmap.service | 2 +- ffmap/systemd/uwsgi-tiles.service | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ffmap/systemd/uwsgi-ffmap.service b/ffmap/systemd/uwsgi-ffmap.service index dbef705..4d90bc5 100644 --- a/ffmap/systemd/uwsgi-ffmap.service +++ b/ffmap/systemd/uwsgi-ffmap.service @@ -3,7 +3,7 @@ Description=FF-MAP Web UI After=syslog.target [Service] -ExecStart=/usr/bin/uwsgi_python3 -s 127.0.0.1:3031 -w ffmap.web.application:app --master --processes 4 --enable-threads --uid www-data --gid www-data --catch-exceptions +ExecStart=/usr/bin/uwsgi_python3 -s 127.0.0.1:3031 -w ffmap.web.application:app --master --processes 4 --enable-threads --uid www-data --gid www-data --catch-exceptions --disable-logging --log-4xx --log-5xx Restart=always KillSignal=SIGQUIT Type=notify diff --git a/ffmap/systemd/uwsgi-tiles.service b/ffmap/systemd/uwsgi-tiles.service index 069d131..63ab37c 100644 --- a/ffmap/systemd/uwsgi-tiles.service +++ b/ffmap/systemd/uwsgi-tiles.service @@ -3,7 +3,7 @@ Description=FF-MAP Tiles After=syslog.target [Service] -ExecStart=/usr/bin/uwsgi_python3 -s 127.0.0.1:3032 --eval 'import sys; sys.path.insert(0,"/data/fff/TileStache"); import TileStache; application = TileStache.WSGITileServer("/usr/share/ffmap/tilestache.cfg")' --master --processes 4 --uid www-data --gid www-data --enable-threads +ExecStart=/usr/bin/uwsgi_python3 -s 127.0.0.1:3032 --eval 'import sys; sys.path.insert(0,"/data/fff/TileStache"); import TileStache; application = TileStache.WSGITileServer("/usr/share/ffmap/tilestache.cfg")' --master --processes 4 --uid www-data --gid www-data --enable-threads --disable-logging --log-4xx --log-5xx Restart=always KillSignal=SIGQUIT Type=notify