debugging api and add notify command
This commit is contained in:
@@ -36,7 +36,7 @@ function checkEvents()
|
||||
if ($exception === false)
|
||||
{
|
||||
logger(DEBUG, sprintf(_("sending command set %s => %s for %s"), $event->param ,bool2string($event->value), $event->device->friendlyName), __FILE__ . ":" . __LINE__);
|
||||
publish(mktopic($event->device), array($event->param => $event->value), "set", $key);
|
||||
publish(mktopic($event->device), array($event->param => $event->value), "set");
|
||||
if (($event->dateTimeEvent->add($event->recurrenceInterval)) === false)
|
||||
{
|
||||
logger(ERROR, _("Error in adding interval to event recurrence. event: ") . $key, __FILE__ . ":" . __LINE__);
|
||||
@@ -194,7 +194,7 @@ function deleteEvent($eventKey)
|
||||
}else
|
||||
{
|
||||
//try to delete an flase event
|
||||
logger(WARNING, _("Try to delete event with key = ") . var_dump($eventKey), __FILE__ . ":" . __LINE__);
|
||||
logger(WARNING, _("Try to delete event with key = ") . var_export($eventKey, true), __FILE__ . ":" . __LINE__);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user