Skip to content

Commit

Permalink
fix logs
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewpeterkort committed Nov 15, 2024
1 parent 0e7ce90 commit 7351ace
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion accounts/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions server/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7351ace

Please sign in to comment.