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

Unified Diff: infra_libs/logs/logs.py

Issue 1260293009: make version of ts_mon compatible with appengine (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: set correct metric and target fields Created 5 years, 4 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
Index: infra_libs/logs/logs.py
diff --git a/infra_libs/logs/logs.py b/infra_libs/logs/logs.py
index 985e2c509e7982fd30922ac0265db255ef6394ea..27cd3d2c876a1515880eaf3d17c6f5ab347c4716 100644
--- a/infra_libs/logs/logs.py
+++ b/infra_libs/logs/logs.py
@@ -41,9 +41,9 @@ import textwrap
import pytz
-from infra_libs.ts_mon import metrics
+from infra_libs.ts_mon.metrics import CumulativeMetric
-log_metric = metrics.CumulativeMetric('proc/log_lines')
+log_metric = CumulativeMetric('proc/log_lines')
if sys.platform.startswith('win'): # pragma: no cover
DEFAULT_LOG_DIRECTORIES = os.pathsep.join([

Powered by Google App Engine
This is Rietveld 408576698