Skip to content

Commit

Permalink
Fix cli logging for merging
Browse files Browse the repository at this point in the history
  • Loading branch information
hhrutter committed Aug 28, 2023
1 parent b68ca5f commit 6f1d3b2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/api/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@ func Merge(destFile string, inFiles []string, w io.Writer, conf *model.Configura
}
defer f.Close()

log.CLI.Println("merging into " + destFile)
if conf.Cmd == model.MERGECREATE {
log.CLI.Println(destFile)
}

ctxDest, _, _, err := readAndValidate(f, conf, time.Now())
if err != nil {
Expand Down Expand Up @@ -139,6 +141,7 @@ func Merge(destFile string, inFiles []string, w io.Writer, conf *model.Configura
}
}

log.CLI.Println("optimizing...")
if err := OptimizeContext(ctxDest); err != nil {
return err
}
Expand Down

0 comments on commit 6f1d3b2

Please sign in to comment.