Erweiterungen
This commit is contained in:
1 parent
279f6cb868
commit
5b3dead325
14 files changed
+114
-52
No files matched your search
+3
-3
@@ -86,14 +86,14 @@ class Util {
|
||||
pattern.allMatches(text).forEach((match) => debugPrint(match.group(0)));
|
||||
}
|
||||
|
||||
static void _persistLogMessage(String text, LogEntrySeverityEnum severity) {
|
||||
static void _persistLogMessage(String text, LogEntrySeverityEnum severity) async {
|
||||
var logEntry = LogEntry();
|
||||
logEntry.time = DateTime.now();
|
||||
logEntry.text = text;
|
||||
logEntry.severity = severity;
|
||||
|
||||
MyApp.isarInstance.writeTxnSync(() {
|
||||
MyApp.isarInstance.logEntrys.putSync(logEntry);
|
||||
await MyApp.isarInstance.writeTxn(() async {
|
||||
await MyApp.isarInstance.logEntrys.put(logEntry);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user