enhance: Remove unnecessary stack trace in error (#37816)

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
pull/37888/head
wei liu 2024-11-21 15:10:32 +08:00 committed by GitHub
parent c07f056b17
commit 7817ea6b8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 3 deletions

View File

@ -124,9 +124,8 @@ func (c *GRPCClientBase[T]) Call(ctx context.Context, caller func(client T) (any
ret, err := c.callOnce(ctx, caller)
if err != nil {
traceErr := fmt.Errorf("err: %s\n, %s", err.Error(), tracer.StackTrace())
log.Error("GRPCClientBase[T] Call grpc first call get error ", zap.Error(traceErr))
return nil, traceErr
log.Error("GRPCClientBase[T] Call grpc first call get error ", zap.Error(err))
return nil, err
}
return ret, err
}