Migrate to klog v2
This commit is contained in:
parent
c500bd4b3f
commit
cb86c5698c
38 changed files with 47 additions and 43 deletions
|
|
@ -28,7 +28,7 @@ import (
|
|||
"time"
|
||||
|
||||
ps "github.com/mitchellh/go-ps"
|
||||
"k8s.io/klog"
|
||||
"k8s.io/klog/v2"
|
||||
)
|
||||
|
||||
// TODO: Check https://github.com/kubernetes/kubernetes/blob/master/pkg/master/ports/ports.go for ports already being used
|
||||
|
|
@ -144,7 +144,7 @@ func readFileToString(path string) (string, error) {
|
|||
func Version() string {
|
||||
flag := "-v"
|
||||
|
||||
if klog.V(2) {
|
||||
if klog.V(2).Enabled() {
|
||||
flag = "-V"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue