From 7351ace7290f2c1153a86d640c11ea298d8b8c9b Mon Sep 17 00:00:00 2001 From: matthewpeterkort Date: Fri, 15 Nov 2024 15:02:11 -0800 Subject: [PATCH] fix logs --- accounts/util.go | 1 - server/api.go | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/accounts/util.go b/accounts/util.go index bcefce88..c70a5afd 100644 --- a/accounts/util.go +++ b/accounts/util.go @@ -144,7 +144,6 @@ func streamAuthInterceptor(auth Authenticate, access Access) grpc.StreamServerIn } else if info.FullMethod == "/gripql.Edit/BulkDelete" { return handler(srv, &BulkWriteFilter{ss, user, access}) } else if info.FullMethod == "/gripql.Edit/BulkAddRaw" { - // Not sure if need to write custom filter for this, but existing BulkWriteFilter does not work return handler(srv, &BulkWriteRawFilter{ss, user, access}) } else { log.Errorf("Unknown input streaming op %#v!!!", info) diff --git a/server/api.go b/server/api.go index b6a864bc..ca4c26a4 100644 --- a/server/api.go +++ b/server/api.go @@ -285,9 +285,9 @@ func (server *GripServer) BulkAddRaw(stream gripql.Edit_BulkAddRawServer) error result, err := out.Generate(resourceType, classData, false, class.ProjectId) if err != nil { - log.WithFields(log.Fields{"error": err}).Error("BulkAddRaw: streaming error") + log.WithFields(log.Fields{"error": err}).Errorf("BulkAddRaw: validation error for %s: %s", resourceType, classData) errorCount++ - break + continue } for _, element := range result {