mirror of https://github.com/helm/helm
Merge pull request #789 from adamreese/feat/kube-logging
feat(kube): use env variable to control kube loggingpull/791/head
commit
2b3892ce60
@ -0,0 +1,14 @@
|
||||
package kube
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"fmt"
|
||||
"os"
|
||||
)
|
||||
|
||||
func init() {
|
||||
if level := os.Getenv("KUBE_LOG_LEVEL"); level != "" {
|
||||
flag.Set("vmodule", fmt.Sprintf("loader=%s,round_trippers=%s,request=%s", level, level, level))
|
||||
flag.Set("logtostderr", "true")
|
||||
}
|
||||
}
|
Loading…
Reference in new issue