From 87fd529e18ba963ee2a22cff9a9fb0bc4ca617a3 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Fri, 21 Feb 2020 18:30:15 -0500 Subject: [PATCH] fix: less confusing log message fixes https://github.com/ipfs/go-ipfs/issues/6922 --- go.mod | 2 ++ reuseport.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 190ba68..2011dcd 100644 --- a/go.mod +++ b/go.mod @@ -6,3 +6,5 @@ require ( github.com/multiformats/go-multiaddr v0.0.1 github.com/multiformats/go-multiaddr-net v0.0.1 ) + +go 1.13 diff --git a/reuseport.go b/reuseport.go index 82f9f37..eb14068 100644 --- a/reuseport.go +++ b/reuseport.go @@ -57,7 +57,7 @@ func reuseDial(ctx context.Context, laddr *net.TCPAddr, network, raddr string) ( if reuseErrShouldRetry(err) && ctx.Err() == nil { // We could have an existing socket open or we could have one // stuck in TIME-WAIT. - log.Debugf("failed to reuse port, dialing with a random port: %s", err) + log.Debugf("failed to reuse port, will try again with a random port: %s", err) con, err = fallbackDialer.DialContext(ctx, network, raddr) } return con, err