From 0e5e60441286adb3f58ed52c11343edbcb50503d Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Mon, 20 Jan 2020 10:59:47 -0800 Subject: [PATCH] Add cloudlog for is_on_wifi fail old-commit-hash: f6835e949061abb3509df0e857150d9532a54f06 --- selfdrive/loggerd/uploader.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/selfdrive/loggerd/uploader.py b/selfdrive/loggerd/uploader.py index 9e3e16102a..6067f01ed6 100644 --- a/selfdrive/loggerd/uploader.py +++ b/selfdrive/loggerd/uploader.py @@ -67,11 +67,13 @@ def clear_locks(root): def is_on_wifi(): # ConnectivityManager.getActiveNetworkInfo() try: + # TODO: figure out why the android service call sometimes dies with SIGUSR2 (signal from MSGQ) result = android.parse_service_call_string(android.service_call(["connectivity", "2"])) if result is None: return True return 'WIFI' in result except (AttributeError, subprocess.CalledProcessError): + cloudlog.exception("is_on_wifi failed") return False def is_on_hotspot():