From 99aeadc1e2f48f3d38e3fea2a668832bb0e02204 Mon Sep 17 00:00:00 2001 From: Fulup Ar Foll Date: Mon, 18 Dec 2017 23:50:33 +0100 Subject: Provide JSON request when ctl-set FAIL SPEC-1183 Change-Id: I27aa13d7113614b9ef69d09dccc21551cfe2445d Signed-off-by: Fulup Ar Foll --- ahl-policy/ahl-policy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ahl-policy') diff --git a/ahl-policy/ahl-policy.c b/ahl-policy/ahl-policy.c index 90fe9f6..ade9117 100644 --- a/ahl-policy/ahl-policy.c +++ b/ahl-policy/ahl-policy.c @@ -228,7 +228,7 @@ static int PolicySetVolume(int iEndpointID, int iEndpointType, char *pHalApiName err = afb_service_call_sync(pHalApiName, "ctlset", j_query, &j_response); if (err) { - AFB_ERROR("Could not ctlset on HAL: %s with errorcode: %i",pHalApiName, err); + AFB_ERROR("Could not ctlset=%s on HAL: %s with errorcode: %i",json_object_to_json_string(j_query), pHalApiName, err); return POLICY_FAIL; } AFB_DEBUG("HAL ctlset response=%s", json_object_to_json_string(j_response)); @@ -290,7 +290,7 @@ static int PolicyGetVolume(int iEndpointID, int iEndpointType, char *pHalApiName err = afb_service_call_sync(pHalApiName, "ctlget", j_query, &j_response); if (err) { - AFB_WARNING("Could not ctlset on HAL: %s, errorcode: %i",pHalApiName, err); + AFB_WARNING("Could not ctlget=%s on HAL: %s, errorcode: %i",json_object_to_json_string(j_query),pHalApiName, err); return POLICY_FAIL; } AFB_DEBUG("HAL ctlget response=%s", json_object_to_json_string(j_response)); -- cgit 1.2.3-korg