Fix log level so we log debug output by default.
This commit is contained in:
parent
8c770ba384
commit
3c703356ee
1 changed files with 8 additions and 2 deletions
|
@ -162,12 +162,18 @@ func main() {
|
|||
var kubeClient *client.Client
|
||||
var err error
|
||||
var clusterManager *controller.ClusterManager
|
||||
|
||||
// TODO: We can simply parse all go flags with
|
||||
// flags.AddGoFlagSet(go_flag.CommandLine)
|
||||
// but that pollutes --help output with a ton of standard go flags.
|
||||
// We only really need a binary switch from light, v(2) logging to
|
||||
// heavier debug style V(4) logging, which we use --verbose for.
|
||||
flags.Parse(os.Args)
|
||||
clientConfig := kubectl_util.DefaultClientConfig(flags)
|
||||
|
||||
// Set glog verbosity levels
|
||||
// Set glog verbosity levels, unconditionally set --alsologtostderr.
|
||||
go_flag.Lookup("logtostderr").Value.Set("true")
|
||||
if *verbose {
|
||||
go_flag.Lookup("logtostderr").Value.Set("true")
|
||||
go_flag.Set("v", "4")
|
||||
}
|
||||
glog.Infof("Starting GLBC image: %v, cluster name %v", imageVersion, *clusterName)
|
||||
|
|
Loading…
Reference in a new issue