From d9b1bc6c41a7e26d5cbab23a5b9c93d7fbcfdc28 Mon Sep 17 00:00:00 2001 From: Gordon <1432970085@qq.com> Date: Mon, 13 Mar 2023 10:22:12 +0800 Subject: [PATCH] test --- pkg/common/mw/rpc.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/common/mw/rpc.go b/pkg/common/mw/rpc.go index 07304e142..d797cc3a4 100644 --- a/pkg/common/mw/rpc.go +++ b/pkg/common/mw/rpc.go @@ -25,6 +25,7 @@ func rpcServerInterceptor(ctx context.Context, req interface{}, info *grpc.Unary log.NewError(operationID, info.FullMethod, "type:", fmt.Sprintf("%T", r), "panic:", r, "stack:", string(debug.Stack())) } }() + log.Info("", "rpc come here,in rpc call") funcName := info.FullMethod md, ok := metadata.FromIncomingContext(ctx) if !ok { @@ -63,7 +64,7 @@ func rpcClientInterceptor(ctx context.Context, method string, req, reply interfa if ok { md.Append(constant.OpUserID, opUserID) } - log.Info("", "rpc come here") + log.Info("", "rpc come here before") err = invoker(metadata.NewOutgoingContext(ctx, md), method, req, reply, cc, opts...) if err == nil { return nil