diff options
author | Bryan Newbold <bnewbold@archive.org> | 2022-02-25 11:45:45 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2022-02-25 11:45:45 -0800 |
commit | a0766e6a0100694434ddb2a4a895287806049ed8 (patch) | |
tree | c4661f29c3962f1db3fd02867ebce07d642c0bab | |
parent | 681eb8028f3e99796978288dcd10653909281f40 (diff) | |
download | sandcrawler-a0766e6a0100694434ddb2a4a895287806049ed8.tar.gz sandcrawler-a0766e6a0100694434ddb2a4a895287806049ed8.zip |
more sentry config changes
-rwxr-xr-x | python/ingest_tool.py | 2 | ||||
-rwxr-xr-x | python/sandcrawler_worker.py | 2 | ||||
-rwxr-xr-x | python/scripts/deliver_dumpgrobid_to_s3.py | 2 | ||||
-rwxr-xr-x | python/scripts/deliver_gwb_to_disk.py | 2 | ||||
-rwxr-xr-x | 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) |