Use a multi-subscription stream for Sentry errors

This commit is contained in:
vishnukvmd 2021-12-16 15:16:48 +05:30
parent 4eed676a2a
commit 53507ae2ca

View file

@ -261,7 +261,7 @@ class SuperLogging {
static late bool sentryIsEnabled;
static Future<void> setupSentry() async {
await for (final error in sentryQueueControl.stream) {
await for (final error in sentryQueueControl.stream.asBroadcastStream()) {
try {
Sentry.captureException(
error,