Skip to content

Commit f7df3ec

Browse files
authored
move log restored state to better location.
1 parent fd35f65 commit f7df3ec

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/kubelet/status/state/state_checkpoint.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ func NewStateCheckpoint(stateDir, checkpointName string) (State, error) {
5555
checkpointManager: checkpointManager,
5656
checkpointName: checkpointName,
5757
}
58-
59-
klog.V(2).InfoS("State checkpoint: restored pod resource allocation state from checkpoint")
6058
return stateCheckpoint, nil
6159
}
6260

@@ -73,6 +71,7 @@ func restoreState(checkpointManager checkpointmanager.CheckpointManager, checkpo
7371
}
7472
return nil, err
7573
}
74+
klog.V(2).InfoS("State checkpoint: restored pod resource allocation state from checkpoint")
7675
praInfo, err := checkpoint.GetPodResourceAllocationInfo()
7776
if err != nil {
7877
return nil, fmt.Errorf("failed to get pod resource allocation info: %w", err)

0 commit comments

Comments
 (0)