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