Skip to content

Commit

Permalink
add location log
Browse files Browse the repository at this point in the history
  • Loading branch information
kmrmt committed Nov 7, 2024
1 parent 9f538b7 commit db34de3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/index/job/correction/service/corrector.go
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ func (c *correct) correctShortage(
copts ...grpc.CallOption,
) (any, error) {
client := vc.NewValdClient(conn)
_, err := client.Insert(ctx, req, copts...)
res, err := client.Insert(ctx, req, copts...)
if err != nil {
if st, ok := status.FromError(err); !ok || st == nil {
log.Errorf("gRPC call returned not a gRPC status error: %v", err)
Expand Down Expand Up @@ -625,6 +625,8 @@ func (c *correct) correctShortage(
return nil, nil
}
return nil, err
} else {
log.Debugf("inserted ips: %v", res.Ips)
}
diff--
c.correctedReplicationCount.Add(1)
Expand Down

0 comments on commit db34de3

Please sign in to comment.