Skip to content
New issue

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

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

Already on GitHub? # to your account

Set glog levels to control verbosity #263

Merged
merged 3 commits into from
Sep 16, 2021
Merged

Conversation

sknot-rh
Copy link
Contributor

Signed-off-by: Stanislav Knot sknot@redhat.com

With this, we can control the verbosity using the --verbosity parameter which is already present.

Signed-off-by: Stanislav Knot <sknot@redhat.com>
@@ -33,6 +33,13 @@ const (
clientID = "kafka_exporter"
)

const (
OFF = 0

Choose a reason for hiding this comment

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

what this OFF = 0 is? When on glog you don't use the verbosity function, it just prints the message provided to Info function so I would use INFO = 0 as default and DEBUG = 1 and TRACE = 2.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I thought it would be good to have a possibility to disable info logging.

sknot-rh and others added 2 commits September 15, 2021 16:47
Signed-off-by: Stanislav Knot <sknot@redhat.com>
@danielqsj
Copy link
Owner

/lgtm thanks @sknot-rh and @ppatierno !

@danielqsj danielqsj merged commit b44f44d into danielqsj:master Sep 16, 2021
@sknot-rh sknot-rh deleted the logging branch November 29, 2021 10:44
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants