Skip to content

Commit

Permalink
chore(migration): remove the unnecessary log
Browse files Browse the repository at this point in the history
  • Loading branch information
chuang8511 committed Oct 14, 2024
1 parent bf65da8 commit 7ec269c
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pkg/db/migration/convert/convert000032/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,8 @@ func (c *ConvertToWeb) migratePipeline() error {

updatedRecipeYAML, isUpdate := c.updateRecipeYAML(recipeYAML)

l.Info("Updated Recipe YAML: \n", zap.String("updatedRecipeYAML", updatedRecipeYAML))

l.Info("Is Update: ", zap.Bool("isUpdate", isUpdate))

if isUpdate {
result := tx.Model(p).Where("uid = ?", p.UID).Update("recipe_yaml", updatedRecipeYAML)
l.Info("=== Updating Pipeline ===")

if result.Error != nil {
l.Error("Failed to update pipeline release.")
return fmt.Errorf("updating pipeline recipe: %w", result.Error)
Expand All @@ -66,7 +60,6 @@ func (c *ConvertToWeb) migratePipelineRelease() error {

if isUpdate {
result := tx.Model(p).Where("uid = ?", p.UID).Update("recipe_yaml", updatedRecipeYAML)
l.Info("=== Updating PipelineRelease ===")
if result.Error != nil {
l.Error("Failed to update pipeline release.")
return fmt.Errorf("updating pipeline recipe: %w", result.Error)
Expand Down

0 comments on commit 7ec269c

Please sign in to comment.