aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenserver/main.cpp')
-rw-r--r--src/zenserver/main.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/zenserver/main.cpp b/src/zenserver/main.cpp
index b0d945814..868126533 100644
--- a/src/zenserver/main.cpp
+++ b/src/zenserver/main.cpp
@@ -96,17 +96,15 @@ ZenEntryPoint::Run()
#if ZEN_USE_SENTRY
SentryIntegration Sentry;
- if (m_ServerOptions.SentryConfig.Disable == false)
+ if (m_ServerOptions.NoSentry == false)
{
std::string SentryDatabasePath = (m_ServerOptions.DataDir / ".sentry-native").string();
std::string SentryAttachmentPath = m_ServerOptions.AbsLogFile.string();
- 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},
+ Sentry.Initialize(SentryDatabasePath,
+ SentryAttachmentPath,
+ m_ServerOptions.SentryDsn,
+ m_ServerOptions.SentryAllowPII,
m_ServerOptions.CommandLine);
}
#endif