2020-08-13 16:49:03 +00:00
|
|
|
sentry-sdk provides a link to sentry.io, a service which monitors applications deployed in the wild.
|
|
|
|
Defaults to true. Best to just remove the option.
|
|
|
|
|
|
|
|
diff --git a/dbxfs/main.py b/dbxfs/main.py
|
2022-07-24 12:12:21 +00:00
|
|
|
index 458e82a..784dd2a 100755
|
2020-08-13 16:49:03 +00:00
|
|
|
--- a/dbxfs/main.py
|
|
|
|
+++ b/dbxfs/main.py
|
2022-07-24 12:12:21 +00:00
|
|
|
@@ -43,8 +43,6 @@ import userspacefs
|
2020-08-13 16:49:03 +00:00
|
|
|
import keyring
|
|
|
|
from keyring.errors import KeyringError
|
|
|
|
|
|
|
|
-import sentry_sdk
|
|
|
|
-
|
2022-07-24 12:12:21 +00:00
|
|
|
from block_tracing import block_tracing
|
2020-08-13 16:49:03 +00:00
|
|
|
|
|
|
|
from dbxfs.dbxfs import FileSystem as DropboxFileSystem
|
2022-07-24 12:12:21 +00:00
|
|
|
@@ -127,16 +125,6 @@ def on_new_process(proc_args):
|
|
|
|
level = [logging.WARNING, logging.INFO, logging.DEBUG][min(2, verbose)]
|
|
|
|
logging.basicConfig(level=level, handlers=[logging_stream], format=format_)
|
2020-08-13 16:49:03 +00:00
|
|
|
|
2022-07-24 12:12:21 +00:00
|
|
|
- if int(proc_args.get('send_error_reports', '0')):
|
|
|
|
- version = proc_args['version']
|
|
|
|
- try:
|
|
|
|
- sentry_sdk.init("https://b4b13ebd300849bd92260507a594e618@sentry.io/1293235",
|
|
|
|
- release='%s@%s' % (APP_NAME, version),
|
|
|
|
- with_locals=False)
|
|
|
|
- sentry_sdk.set_user(dict(id=proc_args['sentry_user']))
|
|
|
|
- except Exception:
|
|
|
|
- log.warning("Failed to initialize sentry", exc_info=True)
|
|
|
|
-
|
|
|
|
def create_fs(fs_args):
|
|
|
|
refresh_token = fs_args.get('refresh_token')
|
|
|
|
access_token = fs_args.get('access_token')
|
|
|
|
@@ -527,10 +515,6 @@ deprecated, this functionality will be removed in the future.
|
|
|
|
config['asked_send_error_reports'] = True
|
|
|
|
save_config = True
|
|
|
|
|
|
|
|
- if config.get("send_error_reports", False) and not isinstance(config.get("sentry_user", None), str):
|
|
|
|
- config['sentry_user'] = uuid.uuid4().hex
|
2020-08-13 16:49:03 +00:00
|
|
|
- save_config = True
|
|
|
|
-
|
2022-07-24 12:12:21 +00:00
|
|
|
if save_refresh_token and yes_no_input("Do you want \"%s\" to be the default mount point?" % (mount_point,), default_yes=True):
|
2020-08-13 16:49:03 +00:00
|
|
|
config['mount_point'] = mount_point
|
|
|
|
save_config = True
|
2022-07-24 12:12:21 +00:00
|
|
|
@@ -541,15 +525,6 @@ deprecated, this functionality will be removed in the future.
|
2020-08-13 16:49:03 +00:00
|
|
|
|
|
|
|
log.info("Starting %s...", APP_NAME)
|
|
|
|
|
|
|
|
- if config.get('send_error_reports', False):
|
|
|
|
- try:
|
|
|
|
- sentry_sdk.init("https://b4b13ebd300849bd92260507a594e618@sentry.io/1293235",
|
|
|
|
- release='%s@%s' % (APP_NAME, version),
|
|
|
|
- with_locals=False)
|
2022-07-24 12:12:21 +00:00
|
|
|
- sentry_sdk.set_user(dict(id=config['sentry_user']))
|
2020-08-13 16:49:03 +00:00
|
|
|
- except Exception:
|
|
|
|
- log.warning("Failed to initialize sentry", exc_info=True)
|
|
|
|
-
|
|
|
|
if cache_folder is None:
|
|
|
|
cache_folder = os.path.join(appdirs.user_cache_dir(APP_NAME), "file_cache")
|
|
|
|
try:
|
2022-07-24 12:12:21 +00:00
|
|
|
@@ -602,8 +577,6 @@ deprecated, this functionality will be removed in the future.
|
|
|
|
proc_args['verbose'] = str(args.verbose)
|
|
|
|
proc_args['version'] = version
|
|
|
|
proc_args['send_error_reports'] = str(int(config.get('send_error_reports', False)))
|
|
|
|
- if config.get('send_error_reports', False):
|
|
|
|
- proc_args['sentry_user'] = config['sentry_user']
|
|
|
|
|
|
|
|
return userspacefs.simple_main(mount_point, display_name,
|
|
|
|
('dbxfs.main.create_fs', fs_args),
|
2020-08-13 16:49:03 +00:00
|
|
|
diff --git a/setup.py b/setup.py
|
2022-07-24 12:12:21 +00:00
|
|
|
index ae696e9..869d0db 100644
|
2020-08-13 16:49:03 +00:00
|
|
|
--- a/setup.py
|
|
|
|
+++ b/setup.py
|
2022-07-24 12:12:21 +00:00
|
|
|
@@ -47,7 +47,6 @@ setup(
|
2020-08-13 16:49:03 +00:00
|
|
|
"privy>=6.0,<7",
|
|
|
|
"keyring>=15.1.0",
|
2020-12-28 07:55:02 +00:00
|
|
|
"keyrings.alt>=3.1,<5",
|
2022-07-24 12:12:21 +00:00
|
|
|
- "sentry_sdk>=1.0,<2",
|
2020-08-13 16:49:03 +00:00
|
|
|
],
|
|
|
|
extras_require={
|
|
|
|
'safefs': ["safefs"],
|