Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
paulyufan2 authored and vipul-21 committed Sep 22, 2023
1 parent 8d8df58 commit ab9c3d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cni/network/plugin/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ func rootExecute() error {
if err == nil {
cniReport.VMUptime = upTime.Format("2006-01-02 15:04:05")
} else {
logger.Info("Failed to query last reboot time", zap.Error(err))
logger.Error("Failed to query last reboot time", zap.Error(err))
}

// CNI Acquires lock
Expand Down
2 changes: 1 addition & 1 deletion network/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func (nm *networkManager) restore(isRehydrationRequired bool) error {
if err == nil {
rebootTime, err := platform.GetLastRebootTime()
if err != nil {
logger.Info("Failed to query last reboot time", zap.Error(err))
logger.Error("Failed to query last reboot time", zap.Error(err))
}
logger.Info("reboot time, store mod time", zap.Any("rebootTime", rebootTime), zap.Any("modTime", modTime))
if err == nil && rebootTime.After(modTime) {
Expand Down

0 comments on commit ab9c3d3

Please sign in to comment.