Log Settings and AppState

Not as debug messages. This is very important when receiving a bug
report.
This commit is contained in:
Vishesh Handa
2020-04-16 11:50:18 +02:00
parent fd7ad7d92b
commit 84a7812f0b
2 changed files with 9 additions and 7 deletions

View File

@ -34,6 +34,8 @@ class JournalApp extends StatelessWidget {
var appState = AppState(pref);
appState.dumpToLog();
Log.i("Setting ${Settings.instance.toLoggableMap()}");
if (Settings.instance.collectUsageStatistics) {
_enableAnalyticsIfPossible();
}

View File

@ -48,13 +48,13 @@ class AppState {
}
void dumpToLog() {
Log.d(" ---- Settings ---- ");
Log.d("localGitRepoConfigured: $localGitRepoConfigured");
Log.d("remoteGitRepoConfigured: $remoteGitRepoConfigured");
Log.d("localGitRepoFolderName: $localGitRepoFolderName");
Log.d("remoteGitRepoFolderName: $remoteGitRepoFolderName");
Log.d("onBoardingCompleted: $onBoardingCompleted");
Log.d(" ------------------ ");
Log.i(" ---- Settings ---- ");
Log.i("localGitRepoConfigured: $localGitRepoConfigured");
Log.i("remoteGitRepoConfigured: $remoteGitRepoConfigured");
Log.i("localGitRepoFolderName: $localGitRepoFolderName");
Log.i("remoteGitRepoFolderName: $remoteGitRepoFolderName");
Log.i("onBoardingCompleted: $onBoardingCompleted");
Log.i(" ------------------ ");
}
Future save(SharedPreferences pref) async {