old_contents: import json
  import logging
  from logging import config  # type: ignore
  
  from config import CONFIG_DICT
  
  done_setup = False
  
  
  def setup_logging():
      global done_setup
  
      if not done_setup and CONFIG_DICT['LOGGING']:
          try:
              logging_config_file_path = CONFIG_DICT['LOGGING_CONFIG_FILE_PATH']
              with open(logging_config_file_path, 'rt') as file:
                  config = json.load(file)
              logging.config.dictConfig(config)
              done_setup = True
          except IOError as e:
              raise(Exception('Failed to load logging configuration', e))
  
new_contents: import json
  import logging
  from logging.config import dictConfig  # type: ignore
  
  from config import CONFIG_DICT
  
  done_setup = False
  
  
  def setup_logging():
      global done_setup
  
      if not done_setup and CONFIG_DICT['LOGGING']:
          try:
              logging_config_file_path = CONFIG_DICT['LOGGING_CONFIG_FILE_PATH']
              with open(logging_config_file_path, 'rt') as file:
                  config = json.load(file)
              dictConfig(config)
              done_setup = True
          except IOError as e:
              raise(Exception('Failed to load logging configuration', e))
  
subject: Change logging import