Fix/logging

PR to track logging changes in Gunicorn. This branch aims to fix #591 .