aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/sentryintegration.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2026-03-18 19:46:44 +0100
committerGitHub Enterprise <[email protected]>2026-03-18 19:46:44 +0100
commit2fd2752d411ea6a0c8c3b5f511cc792217fa3b75 (patch)
tree295a90b3488fd861b760a75a59c726672a337ed4 /src/zencore/sentryintegration.cpp
parentallow xmake sln with open at end (#865) (diff)
downloadzen-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.cpp2
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)
{