Skip to content

Commit

Permalink
Move all info logs to debug in pkg/plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhilsbhat committed Jul 1, 2023
1 parent 27bc52c commit f8bdb47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (cfg *Config) ValidatePlugin(pipelines []string) (bool, error) {
}
}

cfg.log.Infof("validating pipeline against plugin returned '%s'", string(out))
cfg.log.Debugf("validating pipeline against plugin returned '%s'", string(out))

return true, nil
}
Expand Down Expand Up @@ -97,7 +97,7 @@ func (cfg *Config) Type(pipelines []string) error {
if len(fileType) != 0 {
if fileType != strings.TrimPrefix(filepath.Ext(pipeline), ".") {
return &errors.PipelineValidationError{
Message: "cannot club multiple pipeline files for validation, should be one of yaml|json|groovy",
Message: "cannot club multiple pipeline file types for validation, should be one of yaml|json|groovy",
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/plugin/plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (suite *YAMLPluginTestSuite) TestValidatePluginTests_ShouldFailValidatingPi

pipelines := []string{yamlPipelinePath, jsonPipelinePath}
err := suite.config.Type(pipelines)
suite.EqualError(err, "cannot club multiple pipeline files for validation, should be one of yaml|json|groovy")
suite.EqualError(err, "cannot club multiple pipeline file types for validation, should be one of yaml|json|groovy")
}

func (suite *YAMLPluginTestSuite) TestValidatePluginTests_ShouldFailValidatingYAMLPipelineDueToWrongPath() {
Expand Down

0 comments on commit f8bdb47

Please sign in to comment.