Skip to content

Commit 2eec3e2

Browse files
define shit for sentry release and environment
1 parent 63cca4e commit 2eec3e2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/game/shared/sentry_mgr.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@
2020

2121
// replace this with your Sentry project's DSN link
2222
#define SENTRY_DSN_LINK "<your-dsn-link-here>"
23+
// replace this with anything you want
24+
#define SENTRY_RELEASE "mymod@version"
25+
// replace this with anything you want
26+
#define SENTRY_ENVIRONMENT "development"
2327

2428
#ifdef _WIN32 // dw its gonna still work in the 64 bit config
2529
#define SENTRY_CRASHPADEXE_NAME "aridity_crashpad.exe"
@@ -87,9 +91,9 @@ bool CSentryMgr::Init()
8791

8892
sentry_options_set_handler_path(options, handlerPath);
8993
sentry_options_set_database_path(options, dbPath);
90-
sentry_options_set_release(options, "[email protected]");
94+
sentry_options_set_release(options, SENTRY_RELEASE);
9195
sentry_options_set_debug(options, 1);
92-
sentry_options_set_environment(options, "production");
96+
sentry_options_set_environment(options, SENTRY_ENVIRONMENT);
9397

9498
sentry_value_set_stacktrace(exc, NULL, 0);
9599
sentry_event_add_exception(event, exc);

0 commit comments

Comments
 (0)