<reponame>keakon/Doodle
# -*- coding: utf-8 -*-

import logging
import os


doodle_env = os.getenv('DOODLE_ENV')
try:
    if doodle_env == 'PRODUCTION':
        from .production import ProductionConfig as CONFIG
        logging.info('Production config loaded.')
    elif doodle_env == 'TEST':
        from .test import TestConfig as CONFIG
        logging.info('Test config loaded.')
    else:
        from .development import DevelopmentConfig as CONFIG
        logging.info('Development config loaded.')
except ImportError:
    logging.warning('Loading config for %s environment failed, use default config instead.', doodle_env or 'unspecified')
    from .default import Config as CONFIG

# -*- coding: utf-8 -*-

import logging
import os


doodle_env = os.getenv('DOODLE_ENV')
try:
    if doodle_env == 'PRODUCTION':
        from .production import ProductionConfig as CONFIG
        logging.info('Production config loaded.')
    elif doodle_env == 'TEST':
        from .test import TestConfig as CONFIG
        logging.info('Test config loaded.')
    else:
        from .development import DevelopmentConfig as CONFIG
        logging.info('Development config loaded.')
except ImportError:
    logging.warning('Loading config for %s environment failed, use default config instead.', doodle_env or 'unspecified')
    from .default import Config as CONFIG
# -*- coding: utf-8 -*-