if (!json_object_object_get_ex(query,"reason",&l))
l = NULL;
- REQ_NOTICE(request, "in phase of exiting with code %d, reason: %s", code, l ? json_object_get_string(l) : "unknown");
+ AFB_REQ_NOTICE(request, "in phase of exiting with code %d, reason: %s", code, l ? json_object_get_string(l) : "unknown");
afb_req_success(request, NULL, NULL);
exit(code);
}
static int preinit()
{
- NOTICE("hello binding comes to live");
+ AFB_NOTICE("hello binding comes to live");
return 0;
}
static int init()
{
- NOTICE("hello binding starting");
+ AFB_NOTICE("hello binding starting");
return 0;
}
static void onevent(const char *event, struct json_object *object)
{
- NOTICE("received event %s(%s)", event, json_object_to_json_string(object));
+ AFB_NOTICE("received event %s(%s)", event, json_object_to_json_string(object));
}
// NOTE: this sample does not use session to keep test a basic as possible