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 }