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

Remove -ignore flag from Makefile, fix log.level info #42

Merged
merged 3 commits into from
Aug 22, 2019
Merged

Remove -ignore flag from Makefile, fix log.level info #42

merged 3 commits into from
Aug 22, 2019

Conversation

nvtkaszpir
Copy link
Contributor

@nvtkaszpir nvtkaszpir commented Aug 19, 2019

staticcheck no longer supports -ignore flag since release 2019.1

See:
http://staticcheck.io/changes/2019.1
https://staticcheck.io/docs/#ignoring-problems

Also fixed segfaults if log.level was set empty or info.

@nvtkaszpir nvtkaszpir changed the title Remove -ignore flag from Makefile Remove -ignore flag from Makefile, fix log.level info Aug 19, 2019
Copy link
Member

@free free left a comment

Choose a reason for hiding this comment

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

Thanks for the fixes, much appreciated.

@@ -154,6 +154,7 @@ func setupLogger(lvl string, fmt string) (logger log.Logger) {
case "debug":
filter = level.AllowDebug()
case "info":
fallthrough
Copy link
Member

Choose a reason for hiding this comment

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

You could have just dropped the case "info" instead and relied on the default.

@free free merged commit 7a1b0b3 into prometheus-community:master Aug 22, 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.

2 participants