1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2024-12-12 10:55:20 +02:00

chore: hide warn level if verbose not configured (#2466)

This commit is contained in:
lndrschlz 2020-12-22 14:33:11 +01:00 committed by GitHub
parent 40a594f5fa
commit b101106a05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -229,7 +229,7 @@ func (c *Config) GetStepConfig(flagValues map[string]interface{}, paramJSON stri
if verbose, ok := stepConfig.Config["verbose"].(bool); ok && verbose {
log.SetVerbose(verbose)
} else if !ok {
} else if !ok && stepConfig.Config["verbose"] != nil {
log.Entry().Warnf("invalid value for parameter verbose: '%v'", stepConfig.Config["verbose"])
}