From 04154053a67633083bbc0b8a758060d0374a9f22 Mon Sep 17 00:00:00 2001 From: hzy Date: Mon, 3 Apr 2023 11:53:21 +0800 Subject: [PATCH] =?UTF-8?q?grpc=E6=8B=A6=E6=88=AA=E5=99=A8=E6=AD=A3?= =?UTF-8?q?=E5=BC=8F=E6=9C=8D=E6=97=A5=E5=BF=97=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- interceptor/v1/grpc/interceptor.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/interceptor/v1/grpc/interceptor.go b/interceptor/v1/grpc/interceptor.go index 7a4cf39..ab16fb3 100644 --- a/interceptor/v1/grpc/interceptor.go +++ b/interceptor/v1/grpc/interceptor.go @@ -4,6 +4,7 @@ import ( "context" "gitea.drugeyes.vip/pharnexbase/utils/enum" "github.com/go-kratos/kratos/v2/errors" + "github.com/go-kratos/kratos/v2/log" "google.golang.org/grpc" ) @@ -49,6 +50,7 @@ func (i *Interceptor) UnaryServerInterceptor() grpc.UnaryServerInterceptor { } // 正式服,统一返回“服务错误” err = ErrInternalServer + log.Errorf("InterServerErr:%v", se) } return }