From 6046b0ee0fd9945ec3aae0bb9e82e912d568cf94 Mon Sep 17 00:00:00 2001 From: dirkmc Date: Tue, 19 Oct 2021 09:55:24 +0200 Subject: [PATCH] Fix network error log (#643) * fix: network error logging * feat: update to go-data-transfer v1.11.4 --- go.mod | 2 +- go.sum | 4 ++-- shared/retrystream.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 6dc75909..241bb8e3 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ require ( github.com/filecoin-project/go-address v0.0.5 github.com/filecoin-project/go-cbor-util v0.0.0-20191219014500-08c40a1e63a2 github.com/filecoin-project/go-commp-utils v0.1.1-0.20210427191551-70bf140d31c7 - github.com/filecoin-project/go-data-transfer v1.11.1 + github.com/filecoin-project/go-data-transfer v1.11.4 github.com/filecoin-project/go-ds-versioning v0.1.0 github.com/filecoin-project/go-fil-commcid v0.1.0 github.com/filecoin-project/go-fil-commp-hashhash v0.1.0 diff --git a/go.sum b/go.sum index 5360c6bc..c57cc2c9 100644 --- a/go.sum +++ b/go.sum @@ -160,8 +160,8 @@ github.com/filecoin-project/go-commp-utils v0.1.1-0.20210427191551-70bf140d31c7/ github.com/filecoin-project/go-crypto v0.0.0-20191218222705-effae4ea9f03 h1:2pMXdBnCiXjfCYx/hLqFxccPoqsSveQFxVLvNxy9bus= github.com/filecoin-project/go-crypto v0.0.0-20191218222705-effae4ea9f03/go.mod h1:+viYnvGtUTgJRdy6oaeF4MTFKAfatX071MPDPBL11EQ= github.com/filecoin-project/go-data-transfer v1.0.1/go.mod h1:UxvfUAY9v3ub0a21BSK9u3pB2aq30Y0KMsG+w9/ysyo= -github.com/filecoin-project/go-data-transfer v1.11.1 h1:fiw2FHDVSDrt427cGp7+Ax3TTZk0e6HvF9Odcl2etBM= -github.com/filecoin-project/go-data-transfer v1.11.1/go.mod h1:2MitLI0ebCkLlPKM7NRggP/t9d+gCcREUKkCKqWRCwU= +github.com/filecoin-project/go-data-transfer v1.11.4 h1:jKvlx0/C8HSyLRn/G1P9TjtfBtFU9jbCvCVFmWbyYVQ= +github.com/filecoin-project/go-data-transfer v1.11.4/go.mod h1:2MitLI0ebCkLlPKM7NRggP/t9d+gCcREUKkCKqWRCwU= github.com/filecoin-project/go-ds-versioning v0.1.0 h1:y/X6UksYTsK8TLCI7rttCKEvl8btmWxyFMEeeWGUxIQ= github.com/filecoin-project/go-ds-versioning v0.1.0/go.mod h1:mp16rb4i2QPmxBnmanUx8i/XANp+PFCCJWiAb+VW4/s= github.com/filecoin-project/go-fil-commcid v0.0.0-20200716160307-8f644712406f/go.mod h1:Eaox7Hvus1JgPrL5+M3+h7aSPHc0cVqpSxA+TxIEpZQ= diff --git a/shared/retrystream.go b/shared/retrystream.go index 18ec3270..485e39eb 100644 --- a/shared/retrystream.go +++ b/shared/retrystream.go @@ -89,7 +89,7 @@ func (impl *RetryStream) OpenStream(ctx context.Context, id peer.ID, protocols [ } duration := b.Duration() - log.Warnf("failed to open stream to %s on attempt %d of %d, waiting %s to try again, err: %w", + log.Warnf("failed to open stream to %s on attempt %.0f of %.0f, waiting %s to try again, err: %s", id, nAttempts, impl.maxStreamOpenAttempts, duration, err) ebt := time.NewTimer(duration)