Skip to content

Commit

Permalink
Display error when failed to connect
Browse files Browse the repository at this point in the history
Signed-off-by: mudler <mudler@localai.io>
  • Loading branch information
mudler committed Aug 27, 2024
1 parent 556ff98 commit 53e6a57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/discovery/dht.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 53e6a57

Please sign in to comment.