only with VERBOSE on

This commit is contained in:
Jeff Carr 2025-09-12 10:18:55 -05:00
parent 692264d1f1
commit c99f9faf3c
1 changed files with 5 additions and 1 deletions

View File

@ -3,6 +3,8 @@
package forgepb
import (
"os"
"go.wit.com/lib/fhelp"
"go.wit.com/lib/gui/prep"
"go.wit.com/log"
@ -25,7 +27,9 @@ func (f *Forge) ConfigSave() error {
return log.Errorf("Only forge can save the config files")
}
f.Config.DumpENV()
if os.Getenv("FORGE_VERBOSE") == "true" {
f.Config.DumpENV()
}
if e := f.Config.ConfigSave(); e != nil {
log.Info("forge.Config.ConfigSave() error", e)
err = e