Merge pull request #10616 from ariesliuwei/logmod
Migrate kubectl logs to structured loggingpull/10621/head
commit
80219cfa70
|
@ -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")
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue