diff --git a/src/Sentry.Unity.Native/SentryNative.cs b/src/Sentry.Unity.Native/SentryNative.cs index ea8ec9743..6f15a65f8 100644 --- a/src/Sentry.Unity.Native/SentryNative.cs +++ b/src/Sentry.Unity.Native/SentryNative.cs @@ -44,7 +44,7 @@ public static void Configure(SentryUnityOptions options, ISentryUnityInfo sentry } catch (Exception e) { - Logger?.LogError("Sentry native initialization failed - native crashes are not captured.", e); + Logger?.LogError(e, "Sentry native initialization failed - native crashes are not captured."); return; } @@ -111,7 +111,7 @@ private static void ReinstallBackend() } catch (EntryPointNotFoundException e) { - Logger?.LogError("Native dependency not found. Did you delete sentry.dll or move files around?", e); + Logger?.LogError(e, "Native dependency not found. Did you delete sentry.dll or move files around?"); } } }