Merge pull request 'Log the app config in Debug' (#54) from no-text-input-for-wifi-password into dev
Reviewed-on: https://codeberg.org/RhemaWave-Technologies/RhemaWave/pulls/54
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package application
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"os"
|
||||
"path/filepath"
|
||||
@@ -234,8 +235,16 @@ 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)
|
||||
}
|
||||
|
||||
if config.EmailAddress == "" {
|
||||
if app.state != NEEDS_EMAIL_ADDRESS {
|
||||
logger.Warning("No email address detected")
|
||||
app.PageRouter.NavigateTo(page.EMAIL_ADDRESS)
|
||||
app.state = NEEDS_EMAIL_ADDRESS
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user