aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/include
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2025-06-12 09:30:54 +0200
committerGitHub Enterprise <[email protected]>2025-06-12 09:30:54 +0200
commitfdad92dddba8047930c4e7496a7f412d760c312e (patch)
tree7f54ad72d7f6de0a778e643669c733dd6e359b77 /src/zencore/include
parent5.6.12 (diff)
downloadzen-fdad92dddba8047930c4e7496a7f412d760c312e.tar.xz
zen-fdad92dddba8047930c4e7496a7f412d760c312e.zip
sentry config (#430)
- Feature: Added `--sentry-environment` to `zen` and `zenserver` - Feature: Added `--sentry-debug` to `zen` and `zenserver` - Feature: Added environment variable parsing for the following options: - `UE_ZEN_SENTRY_ENABLED`: `--no-sentry` (inverted) - `UE_ZEN_SENTRY_DEBUG`: `--sentry-debug` - `UE_ZEN_SENTRY_ALLOWPERSONALINFO`: `--sentry-allow-personal-info` - `UE_ZEN_SENTRY_DSN`: `--sentry-dsn` - `UE_ZEN_SENTRY_ENVIRONMENT`: `--sentry-environment`
Diffstat (limited to 'src/zencore/include')
-rw-r--r--src/zencore/include/zencore/sentryintegration.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/zencore/include/zencore/sentryintegration.h b/src/zencore/include/zencore/sentryintegration.h
index d14c1c275..faf1238b7 100644
--- a/src/zencore/include/zencore/sentryintegration.h
+++ b/src/zencore/include/zencore/sentryintegration.h
@@ -31,11 +31,17 @@ public:
SentryIntegration();
~SentryIntegration();
- void Initialize(std::string SentryDatabasePath,
- std::string SentryAttachmentsPath,
- std::string SentryDsn,
- bool AllowPII,
- const std::string& CommandLine);
+ struct Config
+ {
+ std::string DatabasePath;
+ std::string AttachmentsPath;
+ std::string Dsn;
+ std::string Environment;
+ bool AllowPII = false;
+ bool Debug = false;
+ };
+
+ void Initialize(const Config& Conf, const std::string& CommandLine);
void LogStartupInformation();
static void ClearCaches();