Skip to content

Commit

Permalink
fix: don't report error log in ScopeCallback (#861)
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind authored Jul 5, 2022
1 parent 0a81e5b commit 6ae8941
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Sentry.Unity.Android/SentryJava.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ public ScopeCallback(Action<AndroidJavaObject> callback) : base("io.sentry.Scope
}
catch (Exception e)
{
UnityEngine.Debug.LogError($"Error in SentryJava.ScopeCallback: {e}");
// Adding the Sentry logger prefix ensures we don't send this error to Sentry.
UnityEngine.Debug.LogError($"{UnityLogger.LogPrefix}Error in SentryJava.ScopeCallback: {e}");
}
return null;
}
Expand Down

0 comments on commit 6ae8941

Please sign in to comment.