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

Improve startup message to avoid confusing users when no error occurs #5896

Merged

Conversation

pierresouchay
Copy link
Contributor

Several times, some users not very familiar with Consul get confused
by error message at startup:

[INFO] agent: (LAN) joined: 1 Err: <nil>

Having Err: <nil> seems weird to many users, I propose to have the
following instead:

  • Success: [INFO] agent: (LAN) joined: 1
  • Error: [WARN] agent: (LAN) joined: %d Err: ERROR

Several times, some users not very familiar with Consul get confused
by error message at startup:

  `[INFO] agent: (LAN) joined: 1 Err: <nil>`

Having `Err: <nil>` seems weird to many users, I propose to have the
following instead:

* Success: `[INFO] agent: (LAN) joined: 1`
* Error:   `[WARN] agent: (LAN) joined: %d Err: ERROR`
agent/agent.go Outdated Show resolved Hide resolved
Copy link
Member

@hanshasselberg hanshasselberg left a comment

Choose a reason for hiding this comment

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

Nice change! Left a small comment.

suggestion from @i0rek to improve error message

Co-Authored-By: Hans Hasselberg <me@hans.io>
Copy link
Member

@hanshasselberg hanshasselberg left a comment

Choose a reason for hiding this comment

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

Could you do the same for JoinWAN while you are at it? It has the same problem.

@pierresouchay
Copy link
Contributor Author

@i0rek DONE in next patch

Copy link
Member

@hanshasselberg hanshasselberg left a comment

Choose a reason for hiding this comment

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

🙏

@pierresouchay
Copy link
Contributor Author

Damned unstable tests

@hanshasselberg hanshasselberg merged commit e892981 into hashicorp:master May 24, 2019
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.

None yet

2 participants