mirror of https://github.com/helm/helm
Removes command line flags and adds the environment variable `KUBE_LOG_LEVEL`pull/789/head
parent
4bb596d187
commit
0f5c2951a2
@ -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