diff --git a/cmd/common.go b/cmd/common.go index 74e2276..b618cff 100644 --- a/cmd/common.go +++ b/cmd/common.go @@ -51,8 +51,6 @@ func runChecks(t check.NodeType) { var err error var typeConf *viper.Viper - glog.V(1).Info(fmt.Sprintf("Using config file: %s\n", viper.ConfigFileUsed())) - switch t { case check.MASTER: file = masterFile @@ -91,6 +89,9 @@ func runChecks(t check.NodeType) { s = makeSubstitutions(s, "bin", binmap) s = makeSubstitutions(s, "conf", confmap) + glog.V(1).Info(fmt.Sprintf("Using config file: %s\n", viper.ConfigFileUsed())) + glog.V(1).Info(fmt.Sprintf("Using benchmark file: %s\n", path)) + controls, err := check.NewControls(t, []byte(s)) if err != nil { exitWithError(fmt.Errorf("error setting up %s controls: %v", t, err))