Print the short description of exception in OscA1Client 34/2634/3
authorRehanRaza <muhammad.rehan.raza@est.tech>
Tue, 3 Mar 2020 12:36:45 +0000 (13:36 +0100)
committerRehanRaza <muhammad.rehan.raza@est.tech>
Tue, 3 Mar 2020 12:59:58 +0000 (13:59 +0100)
commit189d22ac70cefa9d533d930bc728020a3e55ea11
tree09f55778d6bacdf5c8a749fecdb6fd6073f52c3b
parent842b9d220588fba7fc17df0cf9c094f91005118b
Print the short description of exception in OscA1Client

Avoid garbage from running the unit-tests which cause exceptions.
Now, it prints just one line:
ERROR org.oransc.policyagent.clients.OscA1Client - Unexpected response for policy type: {"type":"type1"}, exception: org.json.JSONException: JSONObject["create_schema"] not found.

Change-Id: I6c5d0037b9d068a1fd069d521af1070a8ec55c54
Signed-off-by: RehanRaza <muhammad.rehan.raza@est.tech>
policy-agent/src/main/java/org/oransc/policyagent/clients/OscA1Client.java