Skip to content

Commit

Permalink
tidy: logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tinyzimmer committed Nov 5, 2023
1 parent c1117ce commit dbb93c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/meshnode/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ func (s *meshStore) bootstrap(ctx context.Context, opts ConnectOptions) error {
opts.RequestVote = true
if bootstrapped {
// We have data, so the cluster is already bootstrapped.
s.log.Info("Cluster already bootstrapped, attempting to rejoin as voter")
if opts.JoinRoundTripper == nil {
s.log.Info("Cluster already bootstrapped, but we have no join transport. Recovering from storage.")
return s.recoverWireguard(ctx)
}
s.log.Info("Cluster already bootstrapped, attempting to rejoin as voter")
return s.join(ctx, opts)
}
s.log.Debug("Cluster not yet bootstrapped, attempting to bootstrap")
Expand Down

0 comments on commit dbb93c0

Please sign in to comment.