Migrate to klog v2
This commit is contained in:
parent
c500bd4b3f
commit
cb86c5698c
38 changed files with 47 additions and 43 deletions
|
|
@ -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"
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue