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

feat: add klogr to the list of benchmarks #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

greut
Copy link

@greut greut commented Oct 10, 2022

It's not the best one w.r.t. allocs/op

)

func init() {
os.Stderr, _ = os.Open("/dev/null")

// stdr
stdr.SetVerbosity(1)
// globr
// glogr / klogr
Copy link

Choose a reason for hiding this comment

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

This doesn't actually bump verbosity for klog because klog.InitFlags wasn't called. It cannot be called because the glog and klog would conflict because both would try to register the same flag.

I don't think it matters because we log at V(0) (enabled by default) and V(9) (disabled by default).

Does it matter for glog? If not, then this whole flag.Set("v", "1") should get removed.

Copy link
Author

Choose a reason for hiding this comment

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

I haven't use glog much.

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