Skip to content

Commit

Permalink
Debug default values (#241)
Browse files Browse the repository at this point in the history
* debug defaults

* fixed values

* removed redundant values

* updated CHANGELOG.md
  • Loading branch information
bitsandfoxes authored Jun 25, 2021
1 parent 973d44b commit adc0f52
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

### Fixes

- Default options values ([#241](https://github.com/getsentry/sentry-unity/pull/241))
- Un-embedding the link.xml to fix code stripping ([#237]/(https://github.com/getsentry/sentry-unity/pull/237))
- Setting IsEnvironmentUser to false by default ([#230](https://github.com/getsentry/sentry-unity/pull/230))

Expand Down
8 changes: 2 additions & 6 deletions src/Sentry.Unity/SentryOptionsUtility.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,20 @@ public static void SetDefaults(SentryUnityOptions options, IApplication? applica
application ??= ApplicationAdapter.Instance;

options.Enabled = true;
options.Dsn = null;

options.AutoSessionTracking = true;
options.CaptureInEditor = true;
options.RequestBodyCompressionLevel = CompressionLevelWithAuto.NoCompression;
options.AttachStacktrace = false;

options.StackTraceMode = StackTraceMode.Original;
options.SampleRate = null;
options.IsEnvironmentUser = false;

options.Release = Release(application);
options.Environment = Environment(application);

options.CacheDirectoryPath = application.PersistentDataPath;

options.Debug = true;
options.DebugOnlyInEditor = false;
options.DiagnosticLevel = SentryLevel.Warning;

TryAttachLogger(options, application);
}
Expand All @@ -46,7 +42,7 @@ public static void SetDefaults(ScriptableSentryUnityOptions options)
options.EnableOfflineCaching = true;

options.Debug = true;
options.DebugOnlyInEditor = false;
options.DebugOnlyInEditor = true;
options.DiagnosticLevel = SentryLevel.Warning;
}

Expand Down

0 comments on commit adc0f52

Please sign in to comment.