Skip to content

Commit

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

0 comments on commit 44f981b

Please sign in to comment.