don't init sentry on non-comma remote

old-commit-hash: 5f3fe0100244cc519acdfd0c5f74d5c71dae0a62
This commit is contained in:
Adeeb Shihadeh
2021-05-03 20:14:31 -07:00
parent e09f7360e0
commit 8a759792c4
+2 -2
View File
@@ -19,7 +19,7 @@ from selfdrive.manager.process_config import managed_processes
from selfdrive.athena.registration import register
from selfdrive.swaglog import cloudlog, add_file_handler
from selfdrive.version import dirty, get_git_commit, version, origin, branch, commit, \
terms_version, training_version, \
terms_version, training_version, comma_remote, \
get_git_branch, get_git_remote
def manager_init():
@@ -88,7 +88,7 @@ def manager_init():
cloudlog.bind_global(dongle_id=dongle_id, version=version, dirty=dirty,
device=HARDWARE.get_device_type())
if not (os.getenv("NOLOG") or os.getenv("NOCRASH") or PC):
if comma_remote and not (os.getenv("NOLOG") or os.getenv("NOCRASH") or PC):
crash.init()
crash.bind_user(id=dongle_id)
crash.bind_extra(dirty=dirty, origin=origin, branch=branch, commit=commit,