Remove config print

This commit is contained in:
NeilClack
2026-06-28 15:06:06 -05:00
parent e461837d79
commit 46a00d2ad8
+7 -7
View File
@@ -1,7 +1,6 @@
package application
import (
"encoding/json"
"errors"
"os"
"path/filepath"
@@ -235,12 +234,13 @@ func (app *Application) checkState() {
panic(err)
}
data, err := json.MarshalIndent(config, "", " ")
if err != nil {
logger.Error("failed to marshal config: %v", err)
} else {
logger.Debug("AppConfig: %s", data)
}
// A rather annoying, insecure, but sometimes necessary "print the config" statement
// data, err := json.MarshalIndent(config, "", " ")
// if err != nil {
// logger.Error("failed to marshal config: %v", err)
// } else {
// logger.Debug("AppConfig: %s", data)
// }
if config.EmailAddress == "" {
if app.state != NEEDS_EMAIL_ADDRESS {