We should configure sentry logging if there is a environment variable `SENTRY_DSN` or a mount option `sentry_dsn`. We should import and configure sentry only if it is configured. http://raven.readthedocs.org/en/latest/config/logging.html