Commit 56447858 authored by Daniel Scheffler's avatar Daniel Scheffler

First attempt to implement sentry_sdk.

Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 2d4eb793
Pipeline #5159 failed with stage
in 1 minute and 11 seconds
......@@ -355,6 +355,9 @@ class COREG(object):
print('\nWARNING: ' + warnMsg)
if not self.ignErr:
import sentry_sdk
sentry_sdk.capture_exception(error)
raise error
def _set_outpathes(self, im_ref, im_tgt):
......
......@@ -25,6 +25,7 @@
import warnings as _warnings
from pkgutil import find_loader as _find_loader
import sentry_sdk
from arosics.CoReg import COREG
from arosics.CoReg_local import COREG_LOCAL
......@@ -45,3 +46,7 @@ __all__ = ['COREG',
# check optional dependencies
if not _find_loader('pyfftw'):
_warnings.warn('PYFFTW library is missing. However, coregistration works. But in some cases it can be much slower.')
# initialize Sentry SDK for automatic error tracking
sentry_sdk.init("https://ae3c38165e9c40469b24a639e6ea078c@sentry.io/1514585")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment