mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 09:52:49 +00:00
Merge pull request #106314 from shivanshu1333/fix/master/105841
Migrated remaining lines of `server.go` and `csi.go` to structured logging
This commit is contained in:
commit
0fefe4e605
@ -205,7 +205,8 @@ func Run(ctx context.Context, cc *schedulerserverconfig.CompletedConfig, sched *
|
|||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
default:
|
default:
|
||||||
// We lost the lock.
|
// We lost the lock.
|
||||||
klog.Exitf("leaderelection lost")
|
klog.ErrorS(nil, "Leaderelection lost")
|
||||||
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -193,7 +193,7 @@ func (pl *CSILimits) filterAttachableVolumes(
|
|||||||
|
|
||||||
driverName, volumeHandle := pl.getCSIDriverInfo(csiNode, pvc)
|
driverName, volumeHandle := pl.getCSIDriverInfo(csiNode, pvc)
|
||||||
if driverName == "" || volumeHandle == "" {
|
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
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user