Skip to content

Commit 17c13d6

Browse files
author
Osman
committed
only log 400/500 errors by default
1 parent 3c69e97 commit 17c13d6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/server/bin/uwsgi.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ chdir = /app
66
pythonpath = .
77
processes = 2
88
threads = 4
9+
log-4xx = true
10+
log-5xx = true
11+
disable-logging = true
912
logdate = %%Y-%%m-%%d-T%%H:%%M:%%SZ
1013
logformat = {"timestamp": "%(ftime)", "address": "%(addr)", "method": "%(method)", "protocol": "%(proto)", "resp_size": "%(size)", "request_body_size": "%(cl)", "response_status": "%(status)", "response_time": "%(secs)", "uri": "%(uri)"}
1114
logformat-strftime = true

0 commit comments

Comments
 (0)