Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
yunhanw-google committed May 24, 2023
1 parent 89979f1 commit ec9caa7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/controller/java/AndroidCallbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ void GetConnectedDeviceCallback::OnDeviceConnectionFailureFn(void * context, con
// Release global ref so application can clean up.
env->DeleteGlobalRef(self->mWrapperCallbackRef);

ChipLogError(Controller, "debug OnDeviceConnectionFailureFn");
jclass getConnectedDeviceCallbackCls = nullptr;
JniReferences::GetInstance().GetClassRef(env, "chip/devicecontroller/GetConnectedDeviceCallbackJni$GetConnectedDeviceCallback",
getConnectedDeviceCallbackCls);
Expand Down Expand Up @@ -582,7 +583,7 @@ void ReportCallback::ReportError(jobject attributePath, jobject eventPath, const
{
CHIP_ERROR err = CHIP_NO_ERROR;
JNIEnv * env = JniReferences::GetInstance().GetEnvForCurrentThread();

ChipLogError(Controller, "debug ReportCallback::ReportError(");
jthrowable exception;
err = AndroidControllerExceptions::GetInstance().CreateAndroidControllerException(env, message, errorCode, exception);
VerifyOrReturn(
Expand Down Expand Up @@ -838,7 +839,7 @@ void ReportEventCallback::ReportError(jobject eventPath, const char * message, C
{
CHIP_ERROR err = CHIP_NO_ERROR;
JNIEnv * env = JniReferences::GetInstance().GetEnvForCurrentThread();

ChipLogError(Controller, "debug ReportEventCallback::ReportError(");
jthrowable exception;
err = AndroidControllerExceptions::GetInstance().CreateAndroidControllerException(env, message, errorCode, exception);
VerifyOrReturn(err == CHIP_NO_ERROR,
Expand Down

0 comments on commit ec9caa7

Please sign in to comment.