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

Unified Diff: infra/tools/send_monitoring_event/__main__.py

Issue 1427903002: send_monitoring_event: support for default event and gomastats (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@event-mon-no-default-kind
Patch Set: Rebased Created 5 years, 1 month 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 | infra/tools/send_monitoring_event/send_event.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/tools/send_monitoring_event/__main__.py
diff --git a/infra/tools/send_monitoring_event/__main__.py b/infra/tools/send_monitoring_event/__main__.py
index dbab84ac335251c017064d50cd439d242bdb3991..704130a69b0b99233cdf3d2eaeec4a2be79ec813 100644
--- a/infra/tools/send_monitoring_event/__main__.py
+++ b/infra/tools/send_monitoring_event/__main__.py
@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import logging
import sys
import traceback
@@ -23,7 +24,6 @@ def main(argv): # pragma: no cover
try:
args = send_event.get_arguments(argv)
-
send_event.process_argparse_options(args)
if args.build_event_type:
@@ -49,7 +49,9 @@ def main(argv): # pragma: no cover
try:
ts_mon.flush()
except ts_mon.MonitoringNoConfiguredMonitorError:
- pass
+ logging.error("Unable to flush ts_mon because it's not configured.")
+ except Exception:
+ logging.exception("Flushing ts_mon metrics failed.")
return status
« no previous file with comments | « no previous file | infra/tools/send_monitoring_event/send_event.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698