Skip to content

Commit

Permalink
log fix
Browse files Browse the repository at this point in the history
  • Loading branch information
richardelms committed Oct 4, 2024
1 parent 2d632a1 commit b578de1
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,18 @@ void FAndroidPlatformBugsnag::Start(const TSharedRef<FBugsnagConfiguration>& Con
UE_LOG(LogBugsnag, Error, TEXT("RICHLOG CALLING START"));
if (JNICache.loaded) // only attempt initialization once
{
UE_LOG(LogBugsnag, Error, TEXT("RICHLOG JNICache already loaded: %d"), loaded);
return;
}
JNIEnv* Env = AndroidJavaEnv::GetJavaEnv(true);

UE_LOG(LogBugsnag, Error, TEXT("RICHLOG about to load JNICache for the first time"));
bool JNICache.loaded = FAndroidPlatformJNI::LoadReferenceCache(Env, &JNICache);
UE_LOG(LogBugsnag, Error, TEXT("RICHLOG was JNICache loaded?: %d"), JNICache.loaded);
UE_LOG(LogBugsnag, Error, TEXT("RICHLOG JNICache WTF"));

if(JNICache.loaded)
{
UE_LOG(LogBugsnag, Error, TEXT("RICHLOG JNICache loaded"));
}
if (JNICache.loaded)
{
OnBreadcrumbCallbacks += Config->GetOnBreadcrumbCallbacks();
Expand All @@ -58,6 +62,8 @@ void FAndroidPlatformBugsnag::Start(const TSharedRef<FBugsnagConfiguration>& Con
}else{
UE_LOG(LogBugsnag, Error, TEXT("RICHLOG JNICache NOT loaded"));
}
UE_LOG(LogBugsnag, Error, TEXT("RICHLOG Start finished"));

}

void FAndroidPlatformBugsnag::Notify(const FString& ErrorClass, const FString& Message, const TArray<uint64>& StackTrace,
Expand Down

0 comments on commit b578de1

Please sign in to comment.