@@ -351,7 +351,7 @@ func (m *ManagerImpl) Start(activePods ActivePodsFunc, sourcesReady config.Sourc
351
351
// Loads in allocatedDevices information from disk.
352
352
err := m .readCheckpoint ()
353
353
if err != nil {
354
- klog .InfoS ( "Continue after failing to read checkpoint file. Device allocation info may NOT be up-to-date" , "err" , err )
354
+ klog .ErrorS ( err , "Continue after failing to read checkpoint file. Device allocation info may NOT be up-to-date" )
355
355
}
356
356
357
357
return m .server .Start ()
@@ -503,7 +503,7 @@ func (m *ManagerImpl) writeCheckpoint() error {
503
503
err := m .checkpointManager .CreateCheckpoint (kubeletDeviceManagerCheckpoint , data )
504
504
if err != nil {
505
505
err2 := fmt .Errorf ("failed to write checkpoint file %q: %v" , kubeletDeviceManagerCheckpoint , err )
506
- klog .InfoS ( "Failed to write checkpoint file" , "err" , err )
506
+ klog .ErrorS ( err , "Failed to write checkpoint file" )
507
507
return err2
508
508
}
509
509
return nil
@@ -516,7 +516,7 @@ func (m *ManagerImpl) readCheckpoint() error {
516
516
if err != nil {
517
517
if err == errors .ErrCheckpointNotFound {
518
518
// no point in trying anything else
519
- klog .InfoS ( "Failed to read data from checkpoint" , "checkpoint" , kubeletDeviceManagerCheckpoint , "err" , err )
519
+ klog .ErrorS ( err , "Failed to read data from checkpoint" , "checkpoint" , kubeletDeviceManagerCheckpoint )
520
520
return nil
521
521
}
522
522
return err
@@ -1167,7 +1167,7 @@ func (m *ManagerImpl) ShouldResetExtendedResourceCapacity() bool {
1167
1167
func (m * ManagerImpl ) isContainerAlreadyRunning (podUID , cntName string ) bool {
1168
1168
cntID , err := m .containerMap .GetContainerID (podUID , cntName )
1169
1169
if err != nil {
1170
- klog .V ( 4 ). InfoS ( "container not found in the initial map, assumed NOT running" , "podUID" , podUID , "containerName" , cntName , "err" , err )
1170
+ klog .ErrorS ( err , "container not found in the initial map, assumed NOT running" , "podUID" , podUID , "containerName" , cntName )
1171
1171
return false
1172
1172
}
1173
1173
0 commit comments