Skip to content

Commit aed7499

Browse files
Merge branch 'staging' into chore/bitcoindart
2 parents b78c9de + e250f6a commit aed7499

3 files changed

Lines changed: 14 additions & 30 deletions

File tree

lib/hive_registrar.g.dart

Lines changed: 0 additions & 27 deletions
This file was deleted.

lib/pages/settings_views/global_settings_view/global_settings_view.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,6 @@ class GlobalSettingsView extends StatelessWidget {
247247
);
248248
},
249249
),
250-
const SizedBox(height: 8),
251250
Consumer(
252251
builder: (_, ref, __) {
253252
final familiarity = ref.watch(

lib/utilities/logger.dart

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,18 @@ class Logging {
123123
StackTrace? stackTrace,
124124
bool toFile = true, // false will print to console only
125125
}) {
126+
if (Util.isTestEnv) {
127+
// Persistent isolates may not work correctly during tests
128+
// just print to console instead
129+
130+
// ignore: avoid_print
131+
print(
132+
"${level.name} [$time] ${_stringifyMessage(message)}"
133+
", ERROR: $error"
134+
", STRACE: $stackTrace",
135+
);
136+
}
137+
126138
if (Util.isTestEnv || Util.isArmLinux) {
127139
toFile = false;
128140
}
@@ -137,8 +149,8 @@ class Logging {
137149
),
138150
toFile,
139151
));
140-
} catch (_) {
141-
// swallow: logger not initialized (e.g. tests); avoid recursive logging
152+
} catch (e, s) {
153+
t("Isolates suck", error: e, stackTrace: s);
142154
}
143155
}
144156

0 commit comments

Comments
 (0)