File tree Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change @@ -205,15 +205,6 @@ class Sentry {
205
205
// try parsing the dsn
206
206
Dsn .parse (options.dsn! );
207
207
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
-
217
208
return true ;
218
209
}
219
210
}
Original file line number Diff line number Diff line change @@ -177,15 +177,15 @@ class SentryOptions {
177
177
platformChecker = checker;
178
178
}
179
179
180
- sdk = SdkVersion (name: sdkName (platformChecker.isWeb), version: sdkVersion);
181
- sdk.addPackage ('pub:sentry' , sdkVersion);
182
-
183
180
// In debug mode we want to log everything by default to the console.
184
181
// In order to do that, this must be the first thing the SDK does
185
182
// and the first thing the SDK does, is to instantiate SentryOptions
186
183
if (platformChecker.isDebugMode ()) {
187
184
debug = true ;
188
185
}
186
+
187
+ sdk = SdkVersion (name: sdkName (platformChecker.isWeb), version: sdkVersion);
188
+ sdk.addPackage ('pub:sentry' , sdkVersion);
189
189
}
190
190
191
191
/// Adds an event processor
You can’t perform that action at this time.
0 commit comments