Log exceptions oif configured in settings (for wsgi client)