import configparser


def load_config(config_path, logger):
    """
    Load the configuration file and return a ConfigParser object
    """
    config = configparser.ConfigParser()
    config_found = config.read(config_path)
    if not config_found:
        logger.warning('Config file ' + config_path + ' not found, using defaults')

    return config