From a0766e6a0100694434ddb2a4a895287806049ed8 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 25 Feb 2022 11:45:45 -0800 Subject: more sentry config changes --- python/ingest_tool.py | 2 +- python/sandcrawler_worker.py | 2 +- python/scripts/deliver_dumpgrobid_to_s3.py | 2 +- python/scripts/deliver_gwb_to_disk.py | 2 +- python/scripts/deliver_gwb_to_s3.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/python/ingest_tool.py b/python/ingest_tool.py index 7866630..a155842 100755 --- a/python/ingest_tool.py +++ b/python/ingest_tool.py @@ -218,7 +218,7 @@ def main(): except Exception: print("failed to configure git revision", file=sys.stderr) GIT_REVISION = None - sentry_sdk.Client(release=GIT_REVISION, environment=args.env, max_breadcrumbs=10) + sentry_sdk.init(release=GIT_REVISION, environment=args.env, max_breadcrumbs=10) args.func(args) diff --git a/python/sandcrawler_worker.py b/python/sandcrawler_worker.py index 0164943..aebcbe1 100755 --- a/python/sandcrawler_worker.py +++ b/python/sandcrawler_worker.py @@ -486,7 +486,7 @@ def main(): except Exception: print("failed to configure git revision", file=sys.stderr) GIT_REVISION = None - sentry_sdk.Client(release=GIT_REVISION, environment=args.env, max_breadcrumbs=10) + sentry_sdk.init(release=GIT_REVISION, environment=args.env, max_breadcrumbs=10) args.func(args) diff --git a/python/scripts/deliver_dumpgrobid_to_s3.py b/python/scripts/deliver_dumpgrobid_to_s3.py index a08cab5..27ccf21 100755 --- a/python/scripts/deliver_dumpgrobid_to_s3.py +++ b/python/scripts/deliver_dumpgrobid_to_s3.py @@ -111,7 +111,7 @@ def main(): ) args = parser.parse_args() - sentry_client = sentry_sdk.Client() + sentry_sdk.init() worker = DeliverDumpGrobidS3(**args.__dict__) worker.run(args.dump_file) diff --git a/python/scripts/deliver_gwb_to_disk.py b/python/scripts/deliver_gwb_to_disk.py index 8eb39dd..093f32a 100755 --- a/python/scripts/deliver_gwb_to_disk.py +++ b/python/scripts/deliver_gwb_to_disk.py @@ -187,7 +187,7 @@ def main(): ) args = parser.parse_args() - sentry_sdk.Client() + sentry_sdk.init() worker = DeliverGwbDisk(**args.__dict__) worker.run(args.manifest_file) diff --git a/python/scripts/deliver_gwb_to_s3.py b/python/scripts/deliver_gwb_to_s3.py index 644b134..6f37ede 100755 --- a/python/scripts/deliver_gwb_to_s3.py +++ b/python/scripts/deliver_gwb_to_s3.py @@ -202,7 +202,7 @@ def main(): ) args = parser.parse_args() - sentry_sdk.Client() + sentry_sdk.init() worker = DeliverGwbS3(**args.__dict__) worker.run(args.manifest_file) -- cgit v1.2.3