Skip to content

Commit 086708d

Browse files
committed
Improve code
1 parent 9075efb commit 086708d

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

dart/lib/src/sentry.dart

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -205,15 +205,6 @@ class Sentry {
205205
// try parsing the dsn
206206
Dsn.parse(options.dsn!);
207207

208-
// If the user set debug to false and the default logger is still
209-
// `dartLogger` we set the logger to `noOpLogger`.
210-
// `dartLogger` is the default because otherwise the logs won't be to the
211-
// user visible between Sentry's initialization and the invocation of the
212-
// options configuration callback.
213-
if (options.debug == false && options.logger == dartLogger) {
214-
options.logger = noOpLogger;
215-
}
216-
217208
return true;
218209
}
219210
}

dart/lib/src/sentry_options.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,15 +177,15 @@ class SentryOptions {
177177
platformChecker = checker;
178178
}
179179

180-
sdk = SdkVersion(name: sdkName(platformChecker.isWeb), version: sdkVersion);
181-
sdk.addPackage('pub:sentry', sdkVersion);
182-
183180
// In debug mode we want to log everything by default to the console.
184181
// In order to do that, this must be the first thing the SDK does
185182
// and the first thing the SDK does, is to instantiate SentryOptions
186183
if (platformChecker.isDebugMode()) {
187184
debug = true;
188185
}
186+
187+
sdk = SdkVersion(name: sdkName(platformChecker.isWeb), version: sdkVersion);
188+
sdk.addPackage('pub:sentry', sdkVersion);
189189
}
190190

191191
/// Adds an event processor

0 commit comments

Comments
 (0)