Skip to content

Commit

Permalink
Test: improve logging when VPP API calls fail (ligato#1486)
Browse files Browse the repository at this point in the history
Signed-off-by: samuel.elias <samelias@cisco.com>

Co-authored-by: samuel.elias <samelias@cisco.com>
  • Loading branch information
2 people authored and VladoLavor committed Oct 4, 2019
1 parent 5792256 commit 7e70a01
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/robot/libraries/vpp_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,8 +370,10 @@ def _execute(self, method='request', process_reply=True,
try:
json_data = json.loads(stdout)
except ValueError:
logger.error("An error occured while processing the PAPI "
"request:\n{rqst}".format(rqst=local_list))
logger.error(
"An error occured while processing the PAPI reply:\n"
"stdout: {stdout}\n"
"stderr: {stderr}".format(stdout=stdout, stderr=stderr))
raise
for data in json_data:
try:
Expand Down

0 comments on commit 7e70a01

Please sign in to comment.