Merge pull request #2230 from filecoin-project/feat/add-peer-to-hello-fail-log

add peer ID to hello protocol failure log
This commit is contained in:
Łukasz Magiera 2020-07-02 10:49:02 +02:00 committed by GitHub
commit f7bffdf63a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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