From 83faaf2906b542ca0492bb2c11f73b7956d7a5d5 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Tue, 18 Aug 2020 07:43:58 -0700 Subject: [PATCH] log when thermald shuts down device old-commit-hash: a46d2f5b17cc24102f26674a2102a0044b3e84e6 --- selfdrive/thermald/thermald.py | 1 + 1 file changed, 1 insertion(+) diff --git a/selfdrive/thermald/thermald.py b/selfdrive/thermald/thermald.py index 1a856e0494..3a72387d44 100755 --- a/selfdrive/thermald/thermald.py +++ b/selfdrive/thermald/thermald.py @@ -409,6 +409,7 @@ def thermald_thread(): # Check if we need to shut down if pm.should_shutdown(health, off_ts, started_seen, LEON): + cloudlog.info(f"shutting device down, offroad for {off_ts}") os.system('LD_LIBRARY_PATH="" svc power shutdown') msg.thermal.chargingError = current_filter.x > 0. and msg.thermal.batteryPercent < 90 # if current is positive, then battery is being discharged