Remove config print
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user