Updating hooks is needed (at the moment) after trace requests
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
if (add) {
rc = afb_trace_add(req, add, trace);
if (rc)
if (add) {
rc = afb_trace_add(req, add, trace);
if (rc)
}
if (drop) {
rc = afb_trace_drop(req, drop, trace);
if (rc)
}
if (drop) {
rc = afb_trace_drop(req, drop, trace);
if (rc)
}
afb_req_success(req, NULL, NULL);
}
afb_req_success(req, NULL, NULL);
+end:
+ afb_apiset_update_hooks(main_apiset, NULL);