1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2024-12-22 14:48:07 +00:00

Log benchmark definition file at verbosity level 1.

This commit is contained in:
Abubakr-Sadik Nii Nai Davis 2017-09-26 23:33:47 +00:00
parent 73a37a0c16
commit 018ad12a64

View File

@ -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))