diff options
author | Fulup Ar Foll <fulup@iot.bzh> | 2017-12-18 23:50:33 +0100 |
---|---|---|
committer | Ronan Le Martret <ronan.lemartret@iot.bzh> | 2017-12-19 07:31:35 +0100 |
commit | 99aeadc1e2f48f3d38e3fea2a668832bb0e02204 (patch) | |
tree | bc89e10714b5cd04ca7bcb321107d09f0aa67ed8 /ahl-policy/ahl-policy.c | |
parent | 82ac8179336010ffc753b18b885a47a6344dfa9f (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/ahl-policy.c')
-rw-r--r-- | ahl-policy/ahl-policy.c | 4 |
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)); |