Skip to content

Commit

Permalink
change error to info when using default version config
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-codefresh committed Oct 8, 2024
1 parent d327bb3 commit 4e9e300
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion reposerver/repository/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -1598,7 +1598,12 @@ func GenerateManifests(ctx context.Context, appPath, repoRoot, revision string,
if codefreshApplicationVersioningEnabled {
appVersions, err := getAppVersions(appPath, versionConfig)
if err != nil {
log.Errorf("failed to retrieve application version, app name: %q: %s", q.AppName, err.Error())
errorMessage := fmt.Sprintf("failed to retrieve application version, app name: %q: %s", q.AppName, err.Error())
if versionConfig.ResourceName == "Chart.yaml" {
log.Info(errorMessage)
} else {
log.Error(errorMessage)
}
} else {
res.ApplicationVersions = &apiclient.ApplicationVersions{
AppVersion: appVersions.AppVersion,
Expand Down

0 comments on commit 4e9e300

Please sign in to comment.