def get_backup_log_configuration_dict(environment, databaseinfra):
    from backup.models import LogConfiguration
    from django.core.exceptions import ObjectDoesNotExist

    try:
        log_configuration = LogConfiguration.objects.get(environment=environment,
                                                         engine_type=databaseinfra.engine.engine_type)
    except __HOLE__:
        return None

    return {
        'MOUNT_PATH': log_configuration.mount_point_path,
        'BACKUP_LOG_EXPORT_PATH': log_configuration.filer_path,
        'RETENTION_BACKUP_LOG_DAYS': log_configuration.retention_days,
        'DATABASE_LOG_PATH': log_configuration.log_path,
        'BACKUP_LOG_SCRIPT': log_configuration.backup_log_script,
        'CONFIG_BACKUP_LOG_SCRIPT': log_configuration.config_backup_log_script,
        'CLEAN_BACKUP_LOG_SCRIPT': log_configuration.clean_backup_log_script,
        'DATABASEINFRA_NAME': databaseinfra.name,
        'BACKUP_LOG_CRON_MINUTE': log_configuration.cron_minute,
        'BACKUP_LOG_CRON_HOUR': log_configuration.cron_hour,
    }
dataset/ETHPy150Open globocom/database-as-a-service/dbaas/workflow/steps/util/__init__.py/get_backup_log_configuration_dict