Install and use special gunicorn logging config file for all gunicorn API services#568
Install and use special gunicorn logging config file for all gunicorn API services#568
Conversation
API based services. This way we don't miss various log messages generated by gunicorn worker processes. Corresponding StackStorm/st2 change: StackStorm/st2#4206
|
While the change is a generally good thing that fixes big, I have a few questions: How Is it possible to have one logging config for services like api stream auth, instead of two configs? At this moment sounds like to change the service to log to |
|
Responded in Slack, to recap: We can't re-use logging config file from a st2 service directly because StackStorm services inject new We could perhaps try to do some deduplication and move some of duplicated stuff to build time. This would perhaps decrease duplication a bit, but it would make it more opaque (harder to see where things are set and changed). |
|
Note: Circle CI build will keep failing until st2 changes are merged into master. |
This pull request installs gunicorn worker logging config files and updates service manager files to pass
--logging-configargument to the gunicorn process.For context and details, see StackStorm/st2#4206.