mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-02 04:47:01 +08:00
Fix logging of settings
This commit is contained in:
@ -122,15 +122,15 @@ class Settings {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<String, dynamic> toMap() {
|
Map<String, String> toMap() {
|
||||||
return <String, dynamic>{
|
return <String, String>{
|
||||||
"gitAuthor": gitAuthor,
|
"gitAuthor": gitAuthor,
|
||||||
"gitAuthorEmail": gitAuthorEmail,
|
"gitAuthorEmail": gitAuthorEmail,
|
||||||
"noteFileNameFormat": noteFileNameFormat.toInternalString(),
|
"noteFileNameFormat": noteFileNameFormat.toInternalString(),
|
||||||
"collectUsageStatistics": collectUsageStatistics,
|
"collectUsageStatistics": collectUsageStatistics.toString(),
|
||||||
"collectCrashReports": collectCrashReports,
|
"collectCrashReports": collectCrashReports.toString(),
|
||||||
"yamlModifiedKey": yamlModifiedKey,
|
"yamlModifiedKey": yamlModifiedKey,
|
||||||
"yamlHeaderEnabled": yamlHeaderEnabled,
|
"yamlHeaderEnabled": yamlHeaderEnabled.toString(),
|
||||||
"defaultNewNoteFolderSpec": defaultNewNoteFolderSpec,
|
"defaultNewNoteFolderSpec": defaultNewNoteFolderSpec,
|
||||||
"journalEditordefaultNewNoteFolderSpec":
|
"journalEditordefaultNewNoteFolderSpec":
|
||||||
journalEditordefaultNewNoteFolderSpec,
|
journalEditordefaultNewNoteFolderSpec,
|
||||||
@ -138,16 +138,16 @@ class Settings {
|
|||||||
"defaultView": defaultView.toInternalString(),
|
"defaultView": defaultView.toInternalString(),
|
||||||
"sortingMode": sortingMode.toInternalString(),
|
"sortingMode": sortingMode.toInternalString(),
|
||||||
"remoteSyncFrequency": remoteSyncFrequency.toInternalString(),
|
"remoteSyncFrequency": remoteSyncFrequency.toInternalString(),
|
||||||
"showNoteSummary": showNoteSummary,
|
"showNoteSummary": showNoteSummary.toString(),
|
||||||
"folderViewHeaderType": folderViewHeaderType,
|
"folderViewHeaderType": folderViewHeaderType,
|
||||||
"version": version,
|
"version": version.toString(),
|
||||||
"proMode": proMode,
|
"proMode": proMode.toString(),
|
||||||
'pseudoId': pseudoId,
|
'pseudoId': pseudoId,
|
||||||
'markdownDefaultView': markdownDefaultView.toInternalString(),
|
'markdownDefaultView': markdownDefaultView.toInternalString(),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
Map<String, dynamic> toLoggableMap() {
|
Map<String, String> toLoggableMap() {
|
||||||
var m = toMap();
|
var m = toMap();
|
||||||
m.remove("gitAuthor");
|
m.remove("gitAuthor");
|
||||||
m.remove("gitAuthorEmail");
|
m.remove("gitAuthorEmail");
|
||||||
|
Reference in New Issue
Block a user