Erweiterungen

This commit is contained in:
Sven committed 2024-03-18 20:26:16 +01:00
1 parent 279f6cb868
commit 5b3dead325
14 files changed
+114 -52

No files matched your search

+3 -3
View File
@@ -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);
});
}