aboutsummaryrefslogtreecommitdiffstats
path: root/alsa-hook
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2017-11-05 17:34:22 +0100
committerFulup Ar Foll <fulup@iot.bzh>2017-11-05 17:34:22 +0100
commitc7f296bea9640a0cf8dc0bdbe6fea78c4c1e1b13 (patch)
tree67446543223372b454d98bb686d29545681a0abb /alsa-hook
parent55929a11c538fb78e2a7ecf75f9d1fad1f424cc1 (diff)
Added few debug message
Diffstat (limited to 'alsa-hook')
-rw-r--r--alsa-hook/PolicyAlsaHook.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/alsa-hook/PolicyAlsaHook.c b/alsa-hook/PolicyAlsaHook.c
index ffba74c..44f5ce9 100644
--- a/alsa-hook/PolicyAlsaHook.c
+++ b/alsa-hook/PolicyAlsaHook.c
@@ -257,7 +257,7 @@ static int CallWithTimeout(afbClientT *afbClient, afbRequestT *afbRequest, int c
// release action is optional
if (afbRequest->apiverb) {
- if (afbClient->verbose) printf("CALL-REQUEST verb=%s tag=%s\n", afbRequest->apiverb, afbRequest->callIdTag);
+ if (afbClient->verbose) printf("CALL-REQUEST verb=%s query=%s tag=%s session=%s\n", afbRequest->apiverb, json_object_get_string(afbRequest->queryJ), afbRequest->callIdTag, afbClient->uid);
err = afb_proto_ws_client_call(afbClient->pws, afbRequest->apiverb, afbRequest->queryJ, afbClient->uid, afbRequest);
if (err < 0 ) goto OnErrorExit;
}
@@ -312,6 +312,7 @@ static int LaunchCallRequest(afbClientT *afbClient, hookActionT action) {
fprintf(stderr, "LaunchCallRequest: Connection to %s failed\n", afbClient->uri);
goto OnErrorExit;
}
+ if (afbClient->verbose) printf ("LaunchCallRequest:optional HOOK_OPEN uri=%s\n", afbClient->uri);
// register hanghup callback
afb_proto_ws_on_hangup(afbClient->pws, OnHangupCB);