Skip to content

Commit

Permalink
NEARLY THERE
Browse files Browse the repository at this point in the history
  • Loading branch information
richardelms committed Oct 4, 2024
1 parent d60e14b commit f083ef5
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,32 @@ void FAndroidPlatformBugsnag::Start(const TSharedRef<FBugsnagConfiguration>& Con
}
UE_LOG(LogBugsnag, Log, TEXT("Bugsnag Configuration parsed successfully."));

if (JNICache.BugsnagClass)
{
UE_LOG(LogBugsnag, Log, TEXT("BugsnagClass is valid."));
}
else
{
UE_LOG(LogBugsnag, Error, TEXT("BugsnagClass is NULL."));
}

if (JNICache.BugsnagStartMethod)
{
UE_LOG(LogBugsnag, Log, TEXT("BugsnagStartMethod is valid."));
}
else
{
UE_LOG(LogBugsnag, Error, TEXT("BugsnagStartMethod is NULL."));
}

// Start Bugsnag
jobject jClient = Env->CallStaticObjectMethod(JNICache.BugsnagClass, JNICache.BugsnagStartMethod, jApp, jConfig);
if (Env->ExceptionCheck())
{
UE_LOG(LogBugsnag, Error, TEXT("Java exception occurred while starting Bugsnag client."));
Env->ExceptionDescribe(); // Logs the exception stack trace to the console
Env->ExceptionClear();
}
if (FAndroidPlatformJNI::CheckAndClearException(Env) || !jClient)
{
UE_LOG(LogBugsnag, Error, TEXT("Failed to start Bugsnag client."));
Expand Down

0 comments on commit f083ef5

Please sign in to comment.