This commit is contained in:
Your Name
2024-04-27 15:44:26 -05:00
parent 50be724af1
commit b6e1ed1d06
39 changed files with 32 additions and 4980 deletions

View File

@@ -26,6 +26,9 @@ class SentryProject(Enum):
def sentry_pinged(url="https://sentry.io", timeout=5):
# CLEARPILOT disabled
return False
try:
urllib.request.urlopen(url, timeout=timeout)
return True
@@ -38,6 +41,9 @@ def bind_user() -> None:
def report_tombstone(fn: str, message: str, contents: str) -> None:
# CLEARPILOT disabled
return
FrogPilot = "frogai" in get_origin().lower()
if not FrogPilot or PC:
return
@@ -87,6 +93,9 @@ def set_sentry_scope(scope, chunks, label):
def capture_fingerprint(params, candidate, blocked=False):
# CLEARPILOT disabled
return
bind_user()
control_keys, vehicle_keys, visual_keys, other_keys, tracking_keys = [
@@ -146,6 +155,9 @@ def capture_fingerprint(params, candidate, blocked=False):
def capture_exception(*args, **kwargs) -> None:
# CLEARPILOT disabled
return
save_exception(traceback.format_exc())
cloudlog.error("crash", exc_info=kwargs.get('exc_info', 1))
@@ -186,6 +198,9 @@ def set_tag(key: str, value: str) -> None:
def init(project: SentryProject) -> bool:
# CLEARPILOT disabled
return
params = Params()
installed = params.get("InstallDate", encoding='utf-8')
updated = params.get("Updated", encoding='utf-8')