Index: build/android/pylib/surface_stats_collector.py |
diff --git a/build/android/pylib/surface_stats_collector.py b/build/android/pylib/surface_stats_collector.py |
index 14b0379b2dd2b735696a548804c3515159cbd5e5..e28df07f823b7a4933a3ec92f55291bbc755deab 100644 |
--- a/build/android/pylib/surface_stats_collector.py |
+++ b/build/android/pylib/surface_stats_collector.py |
@@ -244,7 +244,8 @@ class SurfaceStatsCollector(object): |
# the activity's main window are not updated when the main web content is |
# composited into a SurfaceView. |
results = self._adb.RunShellCommand( |
- 'dumpsys SurfaceFlinger --latency SurfaceView', log_result=True) |
+ 'dumpsys SurfaceFlinger --latency SurfaceView', |
+ log_result=logging.getLogger().isEnabledFor(logging.DEBUG)) |
if not len(results): |
return (None, None) |