From 53e6a57d82fd1490d6ca37260f0cc27db87244db Mon Sep 17 00:00:00 2001 From: mudler Date: Tue, 27 Aug 2024 10:03:07 +0200 Subject: [PATCH] Display error when failed to connect Signed-off-by: mudler --- pkg/discovery/dht.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/discovery/dht.go b/pkg/discovery/dht.go index 07ce7b75..8565a0e4 100644 --- a/pkg/discovery/dht.go +++ b/pkg/discovery/dht.go @@ -244,7 +244,7 @@ func (d *DHT) announceAndConnect(l log.StandardLogger, ctx context.Context, kade timeoutCtx, cancel := context.WithTimeout(ctx, time.Second*120) defer cancel() if err := host.Connect(timeoutCtx, p); err != nil { - l.Debug("Failed connecting to", p) + l.Debugf("Failed connecting to '%s', error: '%s'", p, err.Error()) } else { l.Debug("Connected to:", p) }