mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-30 16:13:55 +00:00
logging of events
This commit is contained in:
parent
b7df177f33
commit
eadeac0a42
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user