skip init sentry if dsn is not specified

This commit is contained in:
Neeraj Gupta 2022-05-09 23:32:38 +05:30
parent 733302b373
commit f6a29bd6f0
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -176,7 +176,7 @@ class SuperLogging {
if (config.body == null) return;
if (enable) {
if (enable && sentryIsEnabled) {
await SentryFlutter.init(
(options) {
options.dsn = config.sentryDsn;