We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daf09e3 commit 7c21cd1Copy full SHA for 7c21cd1
src/sentry/util/print.h
@@ -13,10 +13,10 @@ namespace sentry::util {
13
14
template <typename... Args>
15
void print(sentry::Level p_level, const Variant &p_arg1, const Args &...p_args) {
16
- if (!SentryOptions::get_singleton()->is_debug_enabled() && p_level < sentry::LEVEL_ERROR) {
+ if (SentryOptions::get_singleton().is_valid() && !SentryOptions::get_singleton()->is_debug_enabled() && p_level < sentry::LEVEL_ERROR) {
17
return;
18
}
19
- if (SentryOptions::get_singleton()->get_diagnostic_level() > p_level) {
+ if (SentryOptions::get_singleton().is_valid() && SentryOptions::get_singleton()->get_diagnostic_level() > p_level) {
20
21
22
0 commit comments