Move glog/klog logging to klog/v2

This commit is contained in:
Manuel Rüger
2023-09-17 08:57:33 +03:00
committed by Ciprian Hacman
parent eeab0ab06f
commit e43459d86d
56 changed files with 233 additions and 2530 deletions
+3 -3
View File
@@ -20,7 +20,7 @@ import (
"context"
"fmt"
"github.com/golang/glog"
"k8s.io/klog/v2"
"k8s.io/node-problem-detector/pkg/types"
)
@@ -53,7 +53,7 @@ func (p *problemDetector) Run(ctx context.Context) error {
ch, err := m.Start()
if err != nil {
// Do not return error and keep on trying the following config files.
glog.Errorf("Failed to start problem daemon %v: %v", m, err)
klog.Errorf("Failed to start problem daemon %v: %v", m, err)
failureCount++
continue
}
@@ -74,7 +74,7 @@ func (p *problemDetector) Run(ctx context.Context) error {
}()
ch := groupChannel(chans)
glog.Info("Problem detector started")
klog.Info("Problem detector started")
for {
select {