Skip to content

Commit 219801c

Browse files
committed
Additional checks for local overwrites
1 parent cfcfbca commit 219801c

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

Assets/Scripts/Config/SentryCliConfiguration.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ public class SentryCliConfiguration : SentryCliOptionsConfiguration
55
{
66
public override void Configure(SentryCliOptions cliOptions)
77
{
8+
if (cliOptions.Auth is not null)
9+
{
10+
return;
11+
}
12+
813
var token = ArgumentReader.GetCommandLineArg("auth_token");
914
if (!string.IsNullOrEmpty(token))
1015
{
@@ -17,5 +22,6 @@ public override void Configure(SentryCliOptions cliOptions)
1722

1823
cliOptions.Organization = "demo";
1924
cliOptions.Project = "unity";
25+
cliOptions.UrlOverride = "https://sentry.io";
2026
}
2127
}

Assets/Scripts/Config/SentryOptionConfiguration.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ public class SentryOptionConfiguration : SentryOptionsConfiguration
55
{
66
public override void Configure(SentryUnityOptions options)
77
{
8+
if (options.Dsn is not null)
9+
{
10+
return;
11+
}
12+
813
var dsn = ArgumentReader.GetCommandLineArg("dsn");
914
if (!string.IsNullOrEmpty(dsn))
1015
{

0 commit comments

Comments
 (0)