File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -11,4 +11,7 @@ echo "SLEEPING.. WAITING FOR DB"; sleep 5; echo "WAKING"; alembic upgrade head;
11
11
12
12
# --no-reload prevents Flask restart, which usually happens in middle of create_base_users()
13
13
# TODO: SECURITY - ensure we are not running in debug mode in production
14
- uwsgi --http-socket :5000 --plugin python38 --module wsgi:app --chdir /app --pythonpath . --processes 2 --threads 4 --master
14
+ UWSGI_LOG_CONFIG=" bin/uwsgi_log_config.json"
15
+ # Remove newlines and extra whitespace from log formatting
16
+ LOG_FORMAT=$( cat $UWSGI_LOG_CONFIG | tr -d \\ n | tr -s ' ' )
17
+ uwsgi --logformat " $LOG_FORMAT " --http-socket :5000 --plugin python38 --module wsgi:app --chdir /app --pythonpath . --processes 2 --threads 4 --master
Original file line number Diff line number Diff line change
1
+ {
2
+ "host" : " %(host)" ,
3
+ "address" : " %(addr)" ,
4
+ "method" : " %(method)" ,
5
+ "protocol" : " %(proto)" ,
6
+ "resp_size" : " %(size)" ,
7
+ "request_body_size" : " %(cl)" ,
8
+ "response_status" : " %(status)" ,
9
+ "response_time" : " %(secs)" ,
10
+ "uri" : " %(uri)"
11
+ }
You can’t perform that action at this time.
0 commit comments