Migrate to klog v2

This commit is contained in:
Manuel Alejandro de Brito Fontes 2020-08-08 19:31:02 -04:00
parent c500bd4b3f
commit cb86c5698c
38 changed files with 47 additions and 43 deletions

View file

@ -20,7 +20,7 @@ import (
"strconv"
"time"
"k8s.io/klog"
"k8s.io/klog/v2"
apiv1 "k8s.io/api/core/v1"
@ -833,7 +833,7 @@ func NewDefault() Configuration {
DefaultType: "text/html",
}
if klog.V(5) {
if klog.V(5).Enabled() {
cfg.ErrorLogLevel = "debug"
}