Update tests/pynamics-logger.py

This commit is contained in:
2026-04-10 17:37:01 +00:00
parent a1f7c39c60
commit b9e5bc23e2

View File

@@ -1,13 +1,14 @@
# Event codes:
#0: notify
#1: prgm_start
#2: prgm_end
#3: prgm_crash
#4: snsr_data
#5: mtr_data
#6: perf_smpl
#7: get_time
#8: breakpoint
#1: hfnotify
#2: prgm_start
#3: prgm_end
#4: prgm_crash
#5: snsr_data
#6: mtr_data
#7: perf_smpl
#8: get_time
#9: breakpoint
class PynamicsLogger:
def __init__(self):
self.verboseness = 7
@@ -53,7 +54,7 @@ class PynamicsLogger:
def notifyinfo(self, message, origin): notify(message, 6, origin)
def notifydebug(self, message, origin): notify(message, 7, origin)
def notifycrash(self, message, origin):
sendCommand(3, 0, "uhhhh so the program kinda crashed sorry", origin)
sendCommand(4, 0, "uhhhh so the program kinda crashed sorry", origin)
raise FatalLoggerError("[FATAL] [{}] {}".format(origin, message))
def breakpoint(self, message, origin):