[metrics] Use unicode box-drawing chars and goo.gl link instead
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ METRICS COLLECTION IS TAKING PLACE ┃
┃ ┃
┃ To suppress this message opt in or out using: ┃
┃ $ gclient metrics [--opt-in] [--opt-out] ┃
┃ For more information please see metrics.README.md ┃
┃ in your depot_tools checkout or visit ┃
┃ https://goo.gl/yNpRDV. ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
R=ehmaldonado, mmoss, tandrii
Change-Id: Iab3a5a18aa57e603c8f253f3fcbbf7f96727e003
Reviewed-on: https://chromium-review.googlesource.com/c/1368409
Reviewed-by: Edward Lesmes <ehmaldonado@chromium.org>
Commit-Queue: Elliott Friedman <friedman@chromium.org>
diff --git a/metrics_utils.py b/metrics_utils.py
index 37b668d..b97828f 100644
--- a/metrics_utils.py
+++ b/metrics_utils.py
@@ -1,4 +1,5 @@
#!/usr/bin/env python
+# -*- coding: utf-8 -*-
# Copyright (c) 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
@@ -22,41 +23,41 @@
APP_URL = 'https://cit-cli-metrics.appspot.com'
EMPTY_LINE = (
- '* *'
+ '┃ ┃'
)
NOTICE_COUNTDOWN_HEADER = (
- '*****************************************************\n'
- '* METRICS COLLECTION WILL START IN %2d EXECUTIONS *'
+ '┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓\n'
+ '┃ METRICS COLLECTION WILL START IN %2d EXECUTIONS ┃'
)
NOTICE_COLLECTION_HEADER = (
- '*****************************************************\n'
- '* METRICS COLLECTION IS TAKING PLACE *'
+ '┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓\n'
+ '┃ METRICS COLLECTION IS TAKING PLACE ┃'
)
NOTICE_VERSION_CHANGE_HEADER = (
- '*****************************************************\n'
- '* WE ARE COLLECTING ADDITIONAL METRICS *\n'
- '* *\n'
- '* Please review the changes and opt-in again. *'
+ '┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓\n'
+ '┃ WE ARE COLLECTING ADDITIONAL METRICS ┃\n'
+ '┃ ┃\n'
+ '┃ Please review the changes and opt-in again. ┃'
)
NOTICE_FOOTER = (
- '* To suppress this message opt in or out using: *\n'
- '* $ gclient metrics [--opt-in] [--opt-out] *\n'
- '* For more information please see metrics.README.md *\n'
- '* in your depot_tools checkout or visit *\n'
- '* https://bit.ly/2ufRS4p. *\n'
- '*****************************************************\n'
+ '┃ To suppress this message opt in or out using: ┃\n'
+ '┃ $ gclient metrics [--opt-in] [--opt-out] ┃\n'
+ '┃ For more information please see metrics.README.md ┃\n'
+ '┃ in your depot_tools checkout or visit ┃\n'
+ '┃ https://goo.gl/yNpRDV. ┃\n'
+ '┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛\n'
)
CHANGE_NOTICE = {
# No changes for version 0
0: '',
- 1: ('* We want to collect the Git version. *\n'
- '* We want to collect information about the HTTP *\n'
- '* requests that depot_tools makes, and the git and *\n'
- '* cipd commands it executes. *\n'
- '* *\n'
- '* We only collect known strings to make sure we *\n'
- '* don\'t record PII. *')
+ 1: ('┃ We want to collect the Git version. ┃\n'
+ '┃ We want to collect information about the HTTP ┃\n'
+ '┃ requests that depot_tools makes, and the git and ┃\n'
+ '┃ cipd commands it executes. ┃\n'
+ '┃ ┃\n'
+ '┃ We only collect known strings to make sure we ┃\n'
+ '┃ don\'t record PII. ┃')
}