sentry fixups (#23249)

* set env

* do init in same place

* no sentry for forks

* start session

* start session

* remove that

* val
old-commit-hash: b63bc89bc993648ec5cbe2b90b896ddae90077ed
This commit is contained in:
Adeeb Shihadeh
2022-01-14 15:25:16 -08:00
committed by GitHub
parent 58a47e25bb
commit fa8ba3617b
7 changed files with 88 additions and 69 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ from multiprocessing import Process
from setproctitle import setproctitle # pylint: disable=no-name-in-module
import cereal.messaging as messaging
import selfdrive.crash as crash
import selfdrive.sentry as sentry
from common.basedir import BASEDIR
from common.params import Params
from common.realtime import sec_since_boot
@@ -44,7 +44,7 @@ def launcher(proc: str, name: str) -> None:
except Exception:
# can't install the crash handler because sys.excepthook doesn't play nice
# with threads, so catch it here.
crash.capture_exception()
sentry.capture_exception()
raise