Files
panda-meb/tests/print_logs.py
Adeeb Shihadeh 6b9b448259 log device boot time (#1503)
* log device boot time

* misra

* only log real boots

* set gpio

* true

* initial

* log bootkick

* fix RPv2

---------

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Igor Biletksyy <bs@privacy.im>
2023-07-12 20:34:46 -07:00

9 lines
190 B
Python
Executable File

#!/usr/bin/env python3
from panda import Panda
if __name__ == "__main__":
p = Panda()
for l in p.get_logs():
print(f"{l['id']:<6d} {l['timestamp']} {l['uptime']:6d} - {l['msg']}")