Skip to content

Commit

Permalink
add debug log to see the result of API call
Browse files Browse the repository at this point in the history
  • Loading branch information
vladak committed Apr 5, 2022
1 parent bf3bbd6 commit 7626bae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/src/main/python/opengrok_tools/utils/restful.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ def do_api_call(method, uri, params=None, headers=None, data=None, timeout=None,
proxies=get_proxies(uri),
timeout=timeout
)
logger.debug(f"API call result: {r}")

if r is None:
raise Exception("API call failed")
Expand Down

0 comments on commit 7626bae

Please sign in to comment.