Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make warnings on no bootstrap peers less noisy #5466

Merged
merged 1 commit into from
Sep 19, 2018

Conversation

Stebalien
Copy link
Member

@Stebalien Stebalien commented Sep 14, 2018

We only need to warn the user if we can't connect to the network.

@Stebalien Stebalien requested a review from Kubuxu as a code owner September 14, 2018 05:47
@ghost ghost assigned Stebalien Sep 14, 2018
@ghost ghost added the status/in-progress In progress label Sep 14, 2018
@Stebalien Stebalien requested a review from schomatis September 14, 2018 16:12
@@ -141,6 +138,11 @@ func bootstrapRound(ctx context.Context, host host.Host, cfg BootstrapConfig) er
// if connected to all bootstrap peer candidates, exit
if len(notConnected) < 1 {
log.Debugf("%s no more bootstrap peers to create %d connections", id, numToDial)
if len(peers) == 0 {
// We're *need* to bootstrap but we have no bootstrap
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: "We're need" -> "We need"

We only need to warn the user if we *can't* connect to the network.

License: MIT
Signed-off-by: Steven Allen <[email protected]>
@Stebalien Stebalien force-pushed the fix/less-noisy-boostrap-warning branch from 2a47656 to 224bc0d Compare September 14, 2018 19:10
@Stebalien Stebalien merged commit ce8eb13 into master Sep 19, 2018
@ghost ghost removed the status/in-progress In progress label Sep 19, 2018
@Stebalien Stebalien deleted the fix/less-noisy-boostrap-warning branch February 28, 2019 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants