summaryrefslogtreecommitdiffstats
path: root/ahl-policy
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2017-12-18 23:50:33 +0100
committerFulup Ar Foll <fulup@iot.bzh>2017-12-18 23:50:33 +0100
commit7c3b7df2b1fb4d29df74828861df5b9641134530 (patch)
tree4ad3c841e47385763e9866bcc5ddadd17e35a72d /ahl-policy
parent888f49ea536a86427bd587b432588b240a18755e (diff)
Provide JSON request when ctl-set FAIL SPEC-1183
Change-Id: I27aa13d7113614b9ef69d09dccc21551cfe2445d Signed-off-by: Fulup Ar Foll <fulup@iot.bzh>
Diffstat (limited to 'ahl-policy')
-rw-r--r--ahl-policy/ahl-policy.c4
1 files changed, 2 insertions, 2 deletions
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));