Merge pull request #110747 from harshanarayana/cleanup/GIT-110737/logging-improvements

structured-logging: replace KObjs with KObjSlice for logging
This commit is contained in:
Kubernetes Prow Robot
2022-11-03 00:49:34 -07:00
committed by GitHub
6 changed files with 20 additions and 22 deletions

View File

@@ -417,5 +417,5 @@ func (rc *reconciler) reportMultiAttachError(volumeToAttach cache.VolumeToAttach
}
// Log all pods for system admin
klog.InfoS("Multi-Attach error: volume is already used by pods", "pods", klog.KObjs(pods), "attachedTo", otherNodesStr, "volume", volumeToAttach)
klog.InfoS("Multi-Attach error: volume is already used by pods", "pods", klog.KObjSlice(pods), "attachedTo", otherNodesStr, "volume", volumeToAttach)
}