chore: more logging for env versions
This commit is contained in:
parent
ea10019068
commit
b2436174b0
@ -599,5 +599,11 @@ func (a App) WriteRecipeVersion(version string) error {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
return os.WriteFile(a.Path, []byte(strings.Join(lines, "\n")), os.ModePerm)
|
||||
if err := os.WriteFile(a.Path, []byte(strings.Join(lines, "\n")), os.ModePerm); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
log.Infof("version %s saved to %s.env", version, a.Domain)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
@ -32,6 +32,7 @@ func (r Recipe) Ensure(chaos bool, offline bool) error {
|
||||
}
|
||||
}
|
||||
if r.Version != "" {
|
||||
log.Debugf("ensuring version %s", r.Version)
|
||||
if _, err := r.EnsureVersion(r.Version); err != nil {
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user