add peer ID to hello protocol failure log

This commit is contained in:
whyrusleeping 2020-07-01 16:20:05 -07:00
parent 70d8378404
commit ffd012906c

View File

@ -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
}
}()