Commit 09f358ba authored by Edward Lesmes's avatar Edward Lesmes Committed by LUCI CQ

metrics: Don't collect metrics on DEPOT_TOOLS_METRICS=0

Before crrev.com/c/2876082, DEPOT_TOOLS_METRICS=0 was the
env var used to disable metrics collection.

Bug: b/191388102
Change-Id: I0db9d034562f2eb1afb53818b3853cef50c09826
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/2980230
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
Commit-Queue: Jack Neus <jackneus@google.com>
Auto-Submit: Edward Lesmes <ehmaldonado@chromium.org>
Reviewed-by: 's avatarJack Neus <jackneus@google.com>
parent b714c176
......@@ -25,7 +25,9 @@ CURRENT_VERSION = 2
APP_URL = 'https://cit-cli-metrics.appspot.com'
REPORT_BUILD = os.getenv('DEPOT_TOOLS_REPORT_BUILD')
COLLECT_METRICS = os.getenv('DEPOT_TOOLS_COLLECT_METRICS') != '0'
COLLECT_METRICS = (
os.getenv('DEPOT_TOOLS_COLLECT_METRICS') != '0'
and os.getenv('DEPOT_TOOLS_METRICS') != '0')
SYNC_STATUS_SUCCESS = 'SYNC_STATUS_SUCCESS'
SYNC_STATUS_FAILURE = 'SYNC_STATUS_FAILURE'
......
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