mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 02:07:39 +08:00
Log Settings and AppState
Not as debug messages. This is very important when receiving a bug report.
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Reference in New Issue
Block a user