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

Unified Diff: tools/telemetry/telemetry/page/shared_page_state.py

Issue 1408063008: [Telemetry] Make the logging message when screenshot capturing fail less verbose. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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: tools/telemetry/telemetry/page/shared_page_state.py
diff --git a/tools/telemetry/telemetry/page/shared_page_state.py b/tools/telemetry/telemetry/page/shared_page_state.py
index 0bc9f8883566811b2c39b4b127f50e41fe4441be..540c6968cf6c1e1148c43355adb38e250932d818 100644
--- a/tools/telemetry/telemetry/page/shared_page_state.py
+++ b/tools/telemetry/telemetry/page/shared_page_state.py
@@ -136,9 +136,9 @@ class SharedPageState(story.SharedState):
logging.warning(
'Either tab has crashed or browser does not support taking tab '
'screenshot. Skip taking screenshot on failure.')
- except Exception:
- exception_formatter.PrintFormattedException(
- msg='Error when trying to capture screenshot:')
+ except Exception as e:
+ logging.warning('Exception when trying to capture screenshot: %s',
+ repr(e))
def DidRunStory(self, results):
if self._finder_options.profiler:
« 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