Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(824)

Unified Diff: common/battor/battor/battor_wrapper.py

Issue 2869913002: Add logging to debug battor not running (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common/battor/battor/battor_wrapper.py
diff --git a/common/battor/battor/battor_wrapper.py b/common/battor/battor/battor_wrapper.py
index 4f0e5339ccba5d61220c6fa5b002e075e4a8ef08..267a766cb6eba153403d18da40df14e578c48bd7 100644
--- a/common/battor/battor/battor_wrapper.py
+++ b/common/battor/battor/battor_wrapper.py
@@ -37,6 +37,7 @@ def IsBattOrConnected(test_platform, android_device=None,
if not android_device_map:
device_tree = find_usb_devices.GetBusNumberToDeviceTreeMap()
+ logging.warning('Device tree:', device_tree)
if len(battor_device_mapping.GetBattOrList(device_tree)) == 1:
return True
if android_device_file:
@@ -45,7 +46,9 @@ def IsBattOrConnected(test_platform, android_device=None,
else:
try:
android_device_map = battor_device_mapping.GenerateSerialMap()
+ logging.warning('Android device map:', android_device_map)
except battor_error.BattOrError:
+ logging.exception('Error generating serial map')
return False
# If neither if statement above is triggered, it means that an
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698