Index: build/android/pylib/remote/device/remote_device_helper.py |
diff --git a/build/android/pylib/remote/device/remote_device_helper.py b/build/android/pylib/remote/device/remote_device_helper.py |
index a4cd4887c56a997470b0a9b4026ceac2b1cc1961..abd09471ad9cbf5e4b3671be101470bd7063fdfc 100644 |
--- a/build/android/pylib/remote/device/remote_device_helper.py |
+++ b/build/android/pylib/remote/device/remote_device_helper.py |
@@ -4,6 +4,7 @@ |
"""Common functions and Exceptions for remote_device_*""" |
+import logging |
class RemoteDeviceError(Exception): |
"""Exception to throw when problems occur with remote device service.""" |
@@ -19,3 +20,8 @@ def TestHttpResponse(response, error_msg): |
""" |
if response.status_code != 200: |
raise RemoteDeviceError(error_msg) |
+ |
+ |
+def SetLogging(verbose_count, level): |
+ if verbose_count < 2: |
+ logging.disable(level) |
jbudorick
2015/01/05 16:52:29
I'm concerned with how this interacts with threadi
rnephew (Wrong account)
2015/01/05 19:31:54
Added warning comment for now. A better solution w
|