Skip to content

Commit

Permalink
fix grpc gun invalid log error message
Browse files Browse the repository at this point in the history
fix grpc gun invalid log error message
commit_hash:2a7b68865ab317b0b22f0d5f32e131ec78bb3536
  • Loading branch information
nickclmb committed Feb 24, 2025
1 parent 5dde4d8 commit 89ae347
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/guns/grpc/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func (g *Gun) shoot(ammo *ammo.Ammo) {
code = ConvertGrpcStatus(grpcErr)

if grpcErr != nil {
g.GunDeps.Log.Error("response error", zap.Error(err))
g.GunDeps.Log.Error("response error", zap.Error(grpcErr))
}

g.Answ(&method, message, ammo.Metadata, out, grpcErr, code)
Expand Down
2 changes: 1 addition & 1 deletion components/guns/grpc/scenario/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func (g *Gun) shootStep(step *Call, sample *netsample.Sample, ammoName string, t
sample.SetProtoCode(code) // for setRTT inside

if grpcErr != nil {
g.gun.GunDeps.Log.Error("response error", zap.Error(err))
g.gun.GunDeps.Log.Error("response error", zap.Error(grpcErr))
}

g.gun.Answ(&method, message, step.Metadata, out, grpcErr, code)
Expand Down

0 comments on commit 89ae347

Please sign in to comment.