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/zencore/include | |
| 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/zencore/include')
| -rw-r--r-- | src/zencore/include/zencore/sentryintegration.h | 16 |
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(); |