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

Revert "feat: Add debug output to getConfig (#3341)" (#3396)

This reverts commit b760bf48e7.

Co-authored-by: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com>
This commit is contained in:
Marc Bormeth 2022-01-11 10:47:03 +01:00 committed by GitHub
parent 547ef5b55d
commit 78c4a8fe93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 2 deletions

View File

@ -130,7 +130,6 @@ func getConfig() (config.StepConfig, error) {
if GeneralConfig.MetaDataResolver == nil {
GeneralConfig.MetaDataResolver = GetAllStepMetadata
}
log.Entry().Debugf("Trying to resolve metadata for step %s out of all metadata: %v", configOptions.stepName, GeneralConfig.MetaDataResolver())
metadata, err := config.ResolveMetadata(GeneralConfig.GitHubAccessTokens, GeneralConfig.MetaDataResolver, configOptions.stepMetadata, configOptions.stepName)
if err != nil {
return stepConfig, errors.Wrapf(err, "failed to resolve metadata")

View File

@ -501,7 +501,6 @@ func ResolveMetadata(gitHubTokens map[string]string, metaDataResolver func() map
}
} else {
if stepName != "" {
log.Entry().Debugf("Resolving metadata for step: %s", stepName)
if metaDataResolver == nil {
return metadata, errors.New("metaDataResolver is nil")
}