migrated remaining lines of server.go and csi.go to structured logging

This commit is contained in:
Shivanshu Raj Shrivastava 2021-11-10 21:20:17 +05:30
parent 9351ea291a
commit 3142acbc8c
No known key found for this signature in database
GPG Key ID: F4EDF2ED69728499
2 changed files with 3 additions and 2 deletions

View File

@ -205,7 +205,8 @@ func Run(ctx context.Context, cc *schedulerserverconfig.CompletedConfig, sched *
os.Exit(0)
default:
// We lost the lock.
klog.Exitf("leaderelection lost")
klog.ErrorS(nil, "Leaderelection lost")
os.Exit(1)
}
},
}

View File

@ -193,7 +193,7 @@ func (pl *CSILimits) filterAttachableVolumes(
driverName, volumeHandle := pl.getCSIDriverInfo(csiNode, pvc)
if driverName == "" || volumeHandle == "" {
klog.V(5).Info("Could not find a CSI driver name or volume handle, not counting volume")
klog.V(5).InfoS("Could not find a CSI driver name or volume handle, not counting volume")
continue
}