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 package application
import ( import (
"encoding/json"
"errors" "errors"
"os" "os"
"path/filepath" "path/filepath"
@@ -235,12 +234,13 @@ func (app *Application) checkState() {
panic(err) panic(err)
} }
data, err := json.MarshalIndent(config, "", " ") // A rather annoying, insecure, but sometimes necessary "print the config" statement
if err != nil { // data, err := json.MarshalIndent(config, "", " ")
logger.Error("failed to marshal config: %v", err) // if err != nil {
} else { // logger.Error("failed to marshal config: %v", err)
logger.Debug("AppConfig: %s", data) // } else {
} // logger.Debug("AppConfig: %s", data)
// }
if config.EmailAddress == "" { if config.EmailAddress == "" {
if app.state != NEEDS_EMAIL_ADDRESS { if app.state != NEEDS_EMAIL_ADDRESS {