Add Sentry logging

Add logging for my Sentry server that tracks the values of the serial number, car fingerprint, user set parameters, and the date and time for when FrogPilot was installed and last updated for debugging and support.
This commit is contained in:
FrogAi
2024-01-12 22:39:30 -07:00
parent 9af2cadf3b
commit 7383ee0ddc
5 changed files with 110 additions and 16 deletions

View File

@@ -107,6 +107,9 @@ def manager_init() -> None:
dirty=is_dirty(),
device=HARDWARE.get_device_type())
# Remove the error log on boot to prevent old errors from hanging around
if os.path.isfile(os.path.join(sentry.CRASHES_DIR, 'error.txt')):
os.remove(os.path.join(sentry.CRASHES_DIR, 'error.txt'))
def manager_prepare() -> None:
for p in managed_processes.values():