mirror of
https://github.com/kubernetes/node-problem-detector.git
synced 2026-08-28 01:47:20 +00:00
Move glog/klog logging to klog/v2
This commit is contained in:
committed by
Ciprian Hacman
parent
eeab0ab06f
commit
e43459d86d
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user