From 65df3f01d1e62483155bc188221a9ec673121d9d Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Fri, 28 Apr 2023 14:47:03 -0700 Subject: [PATCH] boardd: more logging (#28051) old-commit-hash: a93f74a846ff21e4538d00c921bdeabc44f85d0d --- selfdrive/boardd/panda.cc | 2 ++ selfdrive/boardd/pandad.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/selfdrive/boardd/panda.cc b/selfdrive/boardd/panda.cc index 4873040f37..1e7b510eca 100644 --- a/selfdrive/boardd/panda.cc +++ b/selfdrive/boardd/panda.cc @@ -13,9 +13,11 @@ Panda::Panda(std::string serial, uint32_t bus_offset) : bus_offset(bus_offset) { // try USB first, then SPI try { handle = std::make_unique(serial); + LOGW("conntected to %s over USB", serial.c_str()); } catch (std::exception &e) { #ifndef __APPLE__ handle = std::make_unique(serial); + LOGW("conntected to %s over SPI", serial.c_str()); #endif } diff --git a/selfdrive/boardd/pandad.py b/selfdrive/boardd/pandad.py index f0ab76e1dd..ccd88a62de 100755 --- a/selfdrive/boardd/pandad.py +++ b/selfdrive/boardd/pandad.py @@ -76,10 +76,13 @@ def panda_sort_cmp(a: Panda, b: Panda): def main() -> NoReturn: + count = 0 first_run = True params = Params() while True: + count += 1 + cloudlog.event("pandad.flash_and_connect", count=count) try: params.remove("PandaSignatures")