From c7f296bea9640a0cf8dc0bdbe6fea78c4c1e1b13 Mon Sep 17 00:00:00 2001 From: Fulup Ar Foll Date: Sun, 5 Nov 2017 17:34:22 +0100 Subject: Added few debug message --- alsa-hook/PolicyAlsaHook.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'alsa-hook') 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); -- cgit 1.2.3-korg