From 3a2bd124aec38cbd23217da64559f176e3b621cb Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Thu, 3 Jan 2019 18:38:38 -0800 Subject: [PATCH] rpcserver: add connectpeer log, fix existing formatting --- rpcserver.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rpcserver.go b/rpcserver.go index ca22c939..0587942c 100644 --- a/rpcserver.go +++ b/rpcserver.go @@ -989,8 +989,11 @@ func (r *rpcServer) ConnectPeer(ctx context.Context, ChainNet: activeNetParams.Net, } + rpcsLog.Debugf("[connectpeer] requested connection to %x@%s", + peerAddr.IdentityKey.SerializeCompressed(), peerAddr.Address) + if err := r.server.ConnectToPeer(peerAddr, in.Perm); err != nil { - rpcsLog.Errorf("(connectpeer): error connecting to peer: %v", err) + rpcsLog.Errorf("[connectpeer]: error connecting to peer: %v", err) return nil, err }