Skip to content

Conversation

@greut
Copy link

@greut greut commented Oct 10, 2022

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

// 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