Commit ad463c95 authored by Edward Lemur's avatar Edward Lemur Committed by Commit Bot

git-cl: Report known project urls.

Bug: 832386
Change-Id: I80bffe3df1b3097ca2d3939d101eb617f3077901
Reviewed-on: https://chromium-review.googlesource.com/1150442Reviewed-by: 's avatarAaron Gable <agable@chromium.org>
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
parent 01ce0591
...@@ -6061,6 +6061,8 @@ def main(argv): ...@@ -6061,6 +6061,8 @@ def main(argv):
global settings global settings
settings = Settings() settings = Settings()
if not metrics.DISABLE_METRICS_COLLECTION:
metrics.collector.add('project_urls', [settings.GetViewVCUrl().strip('/+')])
colorize_CMDstatus_doc() colorize_CMDstatus_doc()
dispatcher = subcommand.CommandDispatcher(__name__) dispatcher = subcommand.CommandDispatcher(__name__)
try: try:
......
...@@ -117,8 +117,6 @@ class MetricsCollector(object): ...@@ -117,8 +117,6 @@ class MetricsCollector(object):
return self._collecting_metrics return self._collecting_metrics
def add(self, name, value): def add(self, name, value):
if not self.collecting_metrics:
return
with self._metrics_lock: with self._metrics_lock:
self._reported_metrics[name] = value self._reported_metrics[name] = value
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment