Skip to content

Commit

Permalink
bootstrap: fix logging
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Apr 11, 2023
1 parent 716c08a commit 2aee12a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/bootstrap/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ func NewDialContext(timeout time.Duration, addrs ...string) (h DialHandler) {
conn, err := dialer.DialContext(ctx, network, addr)
elapsed := time.Since(start)
if err == nil {
log.Debug("bootstrap: connection to %s succeeded in %s", addr, addr, elapsed)
log.Debug("bootstrap: connection to %s succeeded in %s", addr, elapsed)

return conn, nil
}

log.Debug("bootstrap: connection to %s failed in %s: %s", addr, addr, elapsed, err)
log.Debug("bootstrap: connection to %s failed in %s: %s", addr, elapsed, err)
errs = append(errs, err)
}

Expand Down

0 comments on commit 2aee12a

Please sign in to comment.