File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## Unreleased
4+
5+ ### Fixes
6+
7+ - Check options.enabled during SDK initialization ([ #250 ] ( https://github.com/getsentry/sentry-godot/pull/250 ) )
8+
39## 1.0.0-alpha.0
410
511### Breaking changes
Original file line number Diff line number Diff line change @@ -204,6 +204,12 @@ PackedStringArray SentrySDK::_get_global_attachments() {
204204void SentrySDK::_initialize () {
205205 sentry::util::print_debug (" starting Sentry SDK version " + String (SENTRY_GODOT_SDK_VERSION));
206206
207+ if (!SentryOptions::get_singleton ()->is_enabled ()) {
208+ enabled = false ;
209+ sentry::util::print_debug (" Sentry SDK is DISABLED! Operations with Sentry SDK will result in no-ops." );
210+ return ;
211+ }
212+
207213#ifdef NATIVE_SDK
208214 internal_sdk = std::make_shared<NativeSDK>();
209215 enabled = true ;
You can’t perform that action at this time.
0 commit comments