Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Set global logging configuration from a Paste config. #809
I've been doing this in my project just by setting --paste and --logging-config to the same file, but I guess this is a sensible default so long as it doesn't override specifying --logging-config.
I can check the code later but if you know yourself already, please comment. Does this happen before the logging config setting would take effect so that it already is implemented as I say above?
Yes. See https://github.com/benoitc/gunicorn/blob/master/gunicorn/app/wsgiapp.py#L16-32 for the relevant code.
Maybe we could override wsgiapp.WSGIApplication:load_config like pasterapp.PasterBaseApplication?