more descriptive logging
add application object into ns only when using uwsgi and gunicorn