filter logging level for Flask sentry middleware