Skip to content

Commit

Permalink
Add detection logging messages at info level (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonydahanne authored May 18, 2023
1 parent 82d267d commit d3a938b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/core/buildsrc.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (a AppBuildSource) Name() string {
func (a AppBuildSource) Detect() (bool, error) {
// If user requests an app server, and it is not `liberty` then skip
if a.RequestedAppServer != "" && a.RequestedAppServer != JavaAppServerLiberty {
a.Logger.Debugf("failed to match requested app server of [%s], buildpack supports [%s]", a.RequestedAppServer, JavaAppServerLiberty)
a.Logger.Infof("SKIPPED: failed to match requested app server of [%s], buildpack supports [%s]", a.RequestedAppServer, JavaAppServerLiberty)
return false, nil
}

Expand All @@ -84,7 +84,7 @@ func (a AppBuildSource) Detect() (bool, error) {
return false, err
}
if isMainClassDefined {
a.Logger.Debug("`Main-Class` found in `META-INF/MANIFEST.MF`, skipping build")
a.Logger.Info("SKIPPED: `Main-Class` found in `META-INF/MANIFEST.MF`, skipping build")
return false, nil
}

Expand Down

0 comments on commit d3a938b

Please sign in to comment.