diff options
| author | Stefan Boberg <[email protected]> | 2026-03-18 19:46:44 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2026-03-18 19:46:44 +0100 |
| commit | 2fd2752d411ea6a0c8c3b5f511cc792217fa3b75 (patch) | |
| tree | 295a90b3488fd861b760a75a59c726672a337ed4 /src/zencore/sentryintegration.cpp | |
| parent | allow xmake sln with open at end (#865) (diff) | |
| download | zen-2fd2752d411ea6a0c8c3b5f511cc792217fa3b75.tar.xz zen-2fd2752d411ea6a0c8c3b5f511cc792217fa3b75.zip | |
Pre-initialization of default logger (#859)
Improved workaround for troubles with code potentially logging before logging is initialized. Any logging will be routed to a default console logger until logging is initialized fully
Diffstat (limited to 'src/zencore/sentryintegration.cpp')
| -rw-r--r-- | src/zencore/sentryintegration.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zencore/sentryintegration.cpp b/src/zencore/sentryintegration.cpp index 634045cfb..c9c843dd6 100644 --- a/src/zencore/sentryintegration.cpp +++ b/src/zencore/sentryintegration.cpp @@ -160,7 +160,7 @@ SentryLogFunction(sentry_level_t Level, const char* Message, va_list Args, [[may // been configured, we ignore the callbacks for DEBUG/INFO explicitly here // which means users don't see every possible log message if they're trying // to configure the levels using --log-debug=sentry-sdk - if (!TheDefaultLogger || !s_SentryLogEnabled.load(std::memory_order_acquire)) + if (!zen::logging::IsLoggingInitialized() || !s_SentryLogEnabled.load(std::memory_order_acquire)) { switch (Level) { |