diff --git a/lib/core/logging/super_logging.dart b/lib/core/logging/super_logging.dart index e3dd8f127..154d097d5 100644 --- a/lib/core/logging/super_logging.dart +++ b/lib/core/logging/super_logging.dart @@ -252,8 +252,16 @@ class SuperLogging { } // add error to sentry queue - if (sentryIsEnabled && rec.error != null) { - _sendErrorToSentry(rec.error, null); + if (sentryIsEnabled) { + if (rec.error != null) { + _sendErrorToSentry(rec.error, null); + } else if (rec.level == Level.SEVERE || rec.level == Level.SHOUT) { + if (rec.error != null) { + _sendErrorToSentry(rec.error, null); + } else { + _sendErrorToSentry(rec.message, null); + } + } } }