Merge pull request #10616 from ariesliuwei/logmod

Migrate kubectl logs to structured logging
pull/10621/head
Medya Ghazizadeh 2021-02-25 11:31:30 -08:00 committed by GitHub
commit 80219cfa70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -185,7 +185,7 @@ var ConfigCmd = &cobra.Command{
Configurable fields: ` + "\n\n" + configurableFields(),
Run: func(cmd *cobra.Command, args []string) {
if err := cmd.Help(); err != nil {
klog.Errorf("help: %v", err)
klog.ErrorS(err, "help")
}
},
}

View File

@ -52,7 +52,7 @@ minikube kubectl -- get pods --namespace kube-system`,
out.ErrLn("Error caching kubectl: %v", err)
}
klog.InfoS("Running", "path", c.Path, "args", args)
klog.Infof("Running %s %v", c.Path, args)
c.Stdin = os.Stdin
c.Stdout = os.Stdout
c.Stderr = os.Stderr