Skip to content

Commit 83a2903

Browse files
authored
Merge pull request #90 from Microsoft/fix-ReportUnhandledExceptions-logic
Fix ReportUnhandledExceptions logic
2 parents d4c98a9 + 81f657a commit 83a2903

File tree

1 file changed

+1
-1
lines changed
  • Assets/AppCenter/Plugins/AppCenterSDK/Crashes/Shared

1 file changed

+1
-1
lines changed

Assets/AppCenter/Plugins/AppCenterSDK/Crashes/Shared/Crashes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public static void TrackError(Exception exception, IDictionary<string, string> p
4747

4848
public static void OnHandleLog(string logString, string stackTrace, LogType type)
4949
{
50-
if (_reportUnhandledExceptions && LogType.Assert == type || LogType.Exception == type || LogType.Error == type)
50+
if (_reportUnhandledExceptions && (LogType.Assert == type || LogType.Exception == type || LogType.Error == type))
5151
{
5252
var exception = CreateWrapperException(logString, stackTrace);
5353
CrashesInternal.TrackException(exception.GetRawObject());

0 commit comments

Comments
 (0)