logging of events

This commit is contained in:
Grant Limberg 2015-11-03 19:14:11 -08:00
parent b7df177f33
commit eadeac0a42

View File

@ -238,12 +238,32 @@ namespace {
switch(event) switch(event)
{ {
case ZT_EVENT_UP: case ZT_EVENT_UP:
{
LOGD("Event Up");
env->CallVoidMethod(ref->eventListener, onEventMethod, eventObject);
break;
}
case ZT_EVENT_OFFLINE: case ZT_EVENT_OFFLINE:
{
LOGD("Event Offline");
env->CallVoidMethod(ref->eventListener, onEventMethod, eventObject);
break;
}
case ZT_EVENT_ONLINE: case ZT_EVENT_ONLINE:
{
LOGD("Event Online");
env->CallVoidMethod(ref->eventListener, onEventMethod, eventObject);
break;
}
case ZT_EVENT_DOWN: case ZT_EVENT_DOWN:
{
LOGD("Event Down");
env->CallVoidMethod(ref->eventListener, onEventMethod, eventObject);
break;
}
case ZT_EVENT_FATAL_ERROR_IDENTITY_COLLISION: case ZT_EVENT_FATAL_ERROR_IDENTITY_COLLISION:
{ {
LOGV("Regular Event"); LOGV("Identity Collision");
// call onEvent() // call onEvent()
env->CallVoidMethod(ref->eventListener, onEventMethod, eventObject); env->CallVoidMethod(ref->eventListener, onEventMethod, eventObject);
} }