diff options
| author | Martin Ridgers <[email protected]> | 2021-11-17 16:19:13 +0100 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-11-17 16:19:13 +0100 |
| commit | 420a3abb4ea3d55b211b5c03ea0e67305b098cd7 (patch) | |
| tree | 409ac703b36d8526c8be654e2c3f7557c784f715 | |
| parent | Merged main (diff) | |
| download | zen-420a3abb4ea3d55b211b5c03ea0e67305b098cd7.tar.xz zen-420a3abb4ea3d55b211b5c03ea0e67305b098cd7.zip | |
Set sentry database location to use Zen's GlobalOptions.DataDir
Without doing this, Sentry will create a .sentry-native folder directory
in the current working folder of whereever zenserver's launched from
| -rw-r--r-- | zenserver/zenserver.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/zenserver/zenserver.cpp b/zenserver/zenserver.cpp index 374d3ede9..fcc629f3e 100644 --- a/zenserver/zenserver.cpp +++ b/zenserver/zenserver.cpp @@ -779,6 +779,7 @@ ZenEntryPoint::Run() sentry_options_t* SentryOptions = sentry_options_new(); sentry_options_set_dsn(SentryOptions, "https://[email protected]/5919284"); + sentry_options_set_database_path(SentryOptions, PathToUtf8(m_GlobalOptions.DataDir / ".sentry-native").c_str()); sentry_init(SentryOptions); auto _ = zen::MakeGuard([] { sentry_close(); }); |