'Return the log object or raise if not found'

def _get_log(self, context, log_id):

    log_obj = log_object.Log.get_object(context, id=log_id)
    if (not log_obj):
        raise log_exc.LogResourceNotFound(log_id=log_id)
    return log_obj
