import os
from flask import Flask
import logging
from raven.contrib.flask import Sentry


from themint.health import Health


app = Flask(__name__)

app.config.from_object(os.environ.get('SETTINGS'))

if not app.debug:
    app.logger.addHandler(logging.StreamHandler())
    app.logger.setLevel(logging.INFO)

if 'SENTRY_DSN' in os.environ:
    sentry = Sentry(app, dsn=os.environ['SENTRY_DSN'])

app.logger.info(app.config)

from themint.service import message_service
Health(app, checks=[message_service.health])

import os
from flask import Flask
import logging
from raven.contrib.flask import Sentry


from themint.health import Health


app = Flask(__name__)

app.config.from_object(os.environ.get('SETTINGS'))

if not app.debug:
    app.logger.addHandler(logging.StreamHandler())
    app.logger.setLevel(logging.INFO)

if 'SENTRY_DSN' in os.environ:
    sentry = Sentry(app, dsn=os.environ['SENTRY_DSN'])

app.logger.debug(app.config)

from themint.service import message_service
Health(app, checks=[message_service.health])

Set config logging in init to debug
Set config logging in init to debug
