mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 15:11:09 +02:00
rpcserver: add debug log for rpc calls
This commit is contained in:
@@ -772,6 +772,8 @@ func (r *InterceptorChain) rpcStateUnaryServerInterceptor() grpc.UnaryServerInte
|
||||
return func(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo,
|
||||
handler grpc.UnaryHandler) (interface{}, error) {
|
||||
|
||||
r.rpcsLog.Debugf("[%v] requested", info.FullMethod)
|
||||
|
||||
if err := r.checkRPCState(info.Server); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -786,6 +788,8 @@ func (r *InterceptorChain) rpcStateStreamServerInterceptor() grpc.StreamServerIn
|
||||
return func(srv interface{}, ss grpc.ServerStream,
|
||||
info *grpc.StreamServerInfo, handler grpc.StreamHandler) error {
|
||||
|
||||
r.rpcsLog.Debugf("[%v] requested", info.FullMethod)
|
||||
|
||||
if err := r.checkRPCState(srv); err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user