Skip to content

Commit

Permalink
more logs
Browse files Browse the repository at this point in the history
  • Loading branch information
bazile-clyde committed Apr 25, 2023
1 parent b7d2e89 commit 3cdeb88
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion canaries/2D_detection_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ async def main():
if args.webhook is not None:
logging.info("posting to webhook...")
body = {"text": f'{e}'}
requests.post(args.webhook, json=body)
response = requests.post(args.webhook, json=body)
logging.info("done.")
logging.info(f'response={response}')
logging.info(f"caught exception '{e}'")
exit_status = 1
finally:
Expand Down
4 changes: 3 additions & 1 deletion canaries/2D_image_stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ async def main():
if args.webhook is not None:
logging.info("posting to webhook...")
body = {"text": f'{e}'}
requests.post(args.webhook, json=body)
response = requests.post(args.webhook, json=body)
logging.info("done.")
logging.info(f'response={response}')
exit_status = 1
finally:
await close_robot(robot)
Expand Down

0 comments on commit 3cdeb88

Please sign in to comment.