add WaitForShutdown method to the server, additional logging
This commit is contained in:
1 parent
d9922dc76d
commit
555003006b
2 files changed
+22
-14
No files matched your search
@@ -94,6 +94,7 @@ func (r *rpcServer) NewAddress(ctx context.Context, in *lnrpc.NewAddressRequest)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
rpcsLog.Infof("Generated new address: %v", addr.String())
|
||||
return &lnrpc.NewAddressResponse{Address: addr.String()}, nil
|
||||
}
|
||||
|
||||
@@ -114,5 +115,6 @@ func (r *rpcServer) ConnectPeer(ctx context.Context,
|
||||
return nil, err
|
||||
}
|
||||
|
||||
rpcsLog.Infof("Connected to peer: %v", peerAddr.String())
|
||||
return &lnrpc.ConnectPeerResponse{[]byte(peerAddr.String())}, nil
|
||||
}
|
||||
Reference in new issue
Block a user