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

Change a log.Error() to log.Warn() to match comments #16962

Closed
wants to merge 1 commit into from

Conversation

jcvernaleo
Copy link
Contributor

Alternatively, the comment could be changed to say it is an error rather than a warning. I'm happy to close this PR and open one that does that if preferred, but the code and comments should be in sync.

@GitCop
Copy link

GitCop commented Jun 12, 2018

Thank you for your contribution! Your commits seem to not adhere to the repository coding standards

  • Commit: d22283867a2705b6442f9f51fe637b05ebfd1852
  • Commits must be prefixed with the package(s) they modify

Please check the contribution guidelines for more details.


This message was auto-generated by https://gitcop.com

@karalabe
Copy link
Member

The comment just says we should display something to the user that the impossible has happened. Error was the correct log level. The comment is just a formulation, I can't say error the user :P

@karalabe karalabe closed this Jun 12, 2018
@jcvernaleo
Copy link
Contributor Author

Would you consider replacing the word 'warn' with 'alert' or something like that in the comment. Something that isn't already overloaded as a specific log level would seem better to avoid confusion.

@karalabe
Copy link
Member

Fair enough, alert sounds reasonable.

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