diff options
| author | Dan Engelbrecht <[email protected]> | 2025-06-10 13:06:40 +0200 |
|---|---|---|
| committer | Dan Engelbrecht <[email protected]> | 2025-06-10 13:06:40 +0200 |
| commit | cadaad632b05e231dadfc977819189d9c486c74b (patch) | |
| tree | fcbfc231abfa2968b4f669a2624f647a00b2ff62 /src/zenserver/main.cpp | |
| parent | add EnvironmentOptions helper (diff) | |
| download | zen-cadaad632b05e231dadfc977819189d9c486c74b.tar.xz zen-cadaad632b05e231dadfc977819189d9c486c74b.zip | |
add sentry configurations options for debug/environment
add env-variable parsing for sentry option
Diffstat (limited to 'src/zenserver/main.cpp')
| -rw-r--r-- | src/zenserver/main.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/zenserver/main.cpp b/src/zenserver/main.cpp index 868126533..b0d945814 100644 --- a/src/zenserver/main.cpp +++ b/src/zenserver/main.cpp @@ -96,15 +96,17 @@ ZenEntryPoint::Run() #if ZEN_USE_SENTRY SentryIntegration Sentry; - if (m_ServerOptions.NoSentry == false) + if (m_ServerOptions.SentryConfig.Disable == false) { std::string SentryDatabasePath = (m_ServerOptions.DataDir / ".sentry-native").string(); std::string SentryAttachmentPath = m_ServerOptions.AbsLogFile.string(); - Sentry.Initialize(SentryDatabasePath, - SentryAttachmentPath, - m_ServerOptions.SentryDsn, - m_ServerOptions.SentryAllowPII, + Sentry.Initialize({.DatabasePath = SentryDatabasePath, + .AttachmentsPath = SentryAttachmentPath, + .Dsn = m_ServerOptions.SentryConfig.Dsn, + .Environment = m_ServerOptions.SentryConfig.Environment, + .AllowPII = m_ServerOptions.SentryConfig.AllowPII, + .Debug = m_ServerOptions.SentryConfig.Debug}, m_ServerOptions.CommandLine); } #endif |