old_contents: # -*- coding: utf-8 -*-
  
  import os
  
  
  doodle_env = os.getenv('DOODLE_ENV')
  try:
      if doodle_env == 'PRODUCTION':
          from .production import ProductionConfig as CONFIG
      elif doodle_env == 'TEST':
          from .test import TestConfig as CONFIG
      else:
          from .development import DevelopmentConfig as CONFIG
  except ImportError:
      import logging
      logging.warning('Loading config for %s environment failed, use default config instead.', doodle_env or 'unspecified')
  
      from .default import Config as CONFIG
  
new_contents: # -*- 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
  
subject: add logging for config