From 44f981ba1b328f8c7578948d3af8a9dfb15ed74f Mon Sep 17 00:00:00 2001 From: Clyde Bazile Date: Tue, 25 Apr 2023 15:12:39 -0400 Subject: [PATCH] better logs --- canaries/2D_detection_stream.py | 2 +- canaries/2D_image_stream.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/canaries/2D_detection_stream.py b/canaries/2D_detection_stream.py index e94a56d..5cbdf88 100644 --- a/canaries/2D_detection_stream.py +++ b/canaries/2D_detection_stream.py @@ -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}') diff --git a/canaries/2D_image_stream.py b/canaries/2D_image_stream.py index 9dc0ba1..d5a0650 100755 --- a/canaries/2D_image_stream.py +++ b/canaries/2D_image_stream.py @@ -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}')