summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-12 10:18:55 -0500
committerJeff Carr <[email protected]>2025-09-12 10:18:55 -0500
commitc99f9faf3c5da5c6a65246f93f0e3fc230acb75a (patch)
treeeca920b5322a42721fed3a613123dfa62d0e1c6d
parent692264d1f1d11432ea589dc00db11096280d21ba (diff)
only with VERBOSE on
-rw-r--r--config.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/config.go b/config.go
index 4a5482e..386b7a4 100644
--- a/config.go
+++ b/config.go
@@ -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