From ffd012906cc84cd713d402eb49934e90a65a4179 Mon Sep 17 00:00:00 2001 From: whyrusleeping Date: Wed, 1 Jul 2020 16:20:05 -0700 Subject: [PATCH] add peer ID to hello protocol failure log --- node/modules/services.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node/modules/services.go b/node/modules/services.go index 35cc8f40b..d439843c4 100644 --- a/node/modules/services.go +++ b/node/modules/services.go @@ -41,7 +41,7 @@ func RunHello(mctx helpers.MetricsCtx, lc fx.Lifecycle, h host.Host, svc *hello. pic := evt.(event.EvtPeerIdentificationCompleted) go func() { if err := svc.SayHello(helpers.LifecycleCtx(mctx, lc), pic.Peer); err != nil { - log.Warnw("failed to say hello", "error", err) + log.Warnw("failed to say hello", "error", err, "peer", pic.Peer) return } }()