def log_update_error(logger, action, name, entity_type, error):
    """Log an update error."""
    logger.error('Could not %s %s %s due to error: %s', action, name,
        entity_type, error.__class__.__name__)
