From 16a33885a1a34e0ee107a92c6e3c1705a6e7c705 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=B0=D0=B2=D0=B5=D0=BB=20=D0=93=D1=80=D0=B8=D0=B1?= =?UTF-8?q?=D0=B0=D0=BD=D0=BE=D0=B2?= Date: Tue, 18 Jun 2024 10:59:56 +0300 Subject: [PATCH] fix grpc error logging --- components/guns/grpc/core.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/guns/grpc/core.go b/components/guns/grpc/core.go index 28d69759f..4ec259e2a 100644 --- a/components/guns/grpc/core.go +++ b/components/guns/grpc/core.go @@ -235,7 +235,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)