Log StructuredLog: spelling formatting

Signed-off-by: 何庆国10193842 <he.qingguo@zte.com.cn>
This commit is contained in:
何庆国10193842 2022-04-26 17:04:06 +08:00
parent f02682c628
commit 3d14bcb9a4
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ func watchForLockfileContention(path string, done chan struct{}) error {
go func() { go func() {
select { select {
case ev := <-watcher.Event: case ev := <-watcher.Event:
klog.InfoS("inotify event", "event", ev) klog.InfoS("Inotify event", "event", ev)
case err = <-watcher.Error: case err = <-watcher.Error:
klog.ErrorS(err, "inotify watcher error") klog.ErrorS(err, "inotify watcher error")
} }

View File

@ -412,7 +412,7 @@ func (plugin *localVolumePlugin) NodeExpand(resizeOptions volume.NodeResizeOptio
case hostutil.FileTypeDirectory: case hostutil.FileTypeDirectory:
// if the given local volume path is of already filesystem directory, return directly because // if the given local volume path is of already filesystem directory, return directly because
// we do not want to prevent mount operation from succeeding. // we do not want to prevent mount operation from succeeding.
klog.InfoS("expansion of directory based local volumes is NO-OP", "local-volume-path", localDevicePath) klog.InfoS("Expansion of directory based local volumes is NO-OP", "local-volume-path", localDevicePath)
return true, nil return true, nil
default: default:
return false, fmt.Errorf("only directory and block device are supported") return false, fmt.Errorf("only directory and block device are supported")