backend: logging Axione messages
We log the Axione API requests and responses to improve the debugging experience. We probably should put that behind a config flag at some point.
This commit is contained in:
parent
91d63ecff9
commit
ac61343ad4
1 changed files with 6 additions and 0 deletions
|
@ -71,8 +71,14 @@ def query_axione(cfg, body):
|
|||
timeout=120,
|
||||
)
|
||||
conn.request("POST", "/v3/fai", body, headers=headers)
|
||||
print("")
|
||||
print("[+] REQUEST")
|
||||
print(body)
|
||||
response = conn.getresponse()
|
||||
respData = response.read()
|
||||
print("")
|
||||
print("[+] RESPONSE")
|
||||
print(respData)
|
||||
except Exception as e:
|
||||
print("Error while querying Axione: ", file=sys.stderr)
|
||||
print(str(e), file=sys.stderr)
|
||||
|
|
Loading…
Reference in a new issue