[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>
This commit is contained in:
Elliott Friedman
2018-12-08 00:54:54 +00:00
committed by Commit Bot
parent 4be60eeb22
commit f6a8ae76df

View File

@@ -1,4 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (c) 2018 The Chromium Authors. All rights reserved. # Copyright (c) 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
@@ -22,41 +23,41 @@ CURRENT_VERSION = 1
APP_URL = 'https://cit-cli-metrics.appspot.com' APP_URL = 'https://cit-cli-metrics.appspot.com'
EMPTY_LINE = ( EMPTY_LINE = (
'* *' ' '
) )
NOTICE_COUNTDOWN_HEADER = ( NOTICE_COUNTDOWN_HEADER = (
'*****************************************************\n' '┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓\n'
'* METRICS COLLECTION WILL START IN %2d EXECUTIONS *' ' METRICS COLLECTION WILL START IN %2d EXECUTIONS '
) )
NOTICE_COLLECTION_HEADER = ( NOTICE_COLLECTION_HEADER = (
'*****************************************************\n' '┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓\n'
'* METRICS COLLECTION IS TAKING PLACE *' ' METRICS COLLECTION IS TAKING PLACE '
) )
NOTICE_VERSION_CHANGE_HEADER = ( NOTICE_VERSION_CHANGE_HEADER = (
'*****************************************************\n' '┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓\n'
'* WE ARE COLLECTING ADDITIONAL METRICS *\n' ' WE ARE COLLECTING ADDITIONAL METRICS \n'
'* *\n' ' \n'
'* Please review the changes and opt-in again. *' ' Please review the changes and opt-in again. '
) )
NOTICE_FOOTER = ( NOTICE_FOOTER = (
'* To suppress this message opt in or out using: *\n' ' To suppress this message opt in or out using: \n'
'* $ gclient metrics [--opt-in] [--opt-out] *\n' ' $ gclient metrics [--opt-in] [--opt-out] \n'
'* For more information please see metrics.README.md *\n' ' For more information please see metrics.README.md \n'
'* in your depot_tools checkout or visit *\n' ' in your depot_tools checkout or visit \n'
'* https://bit.ly/2ufRS4p. *\n' ' https://goo.gl/yNpRDV. \n'
'*****************************************************\n' '┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛\n'
) )
CHANGE_NOTICE = { CHANGE_NOTICE = {
# No changes for version 0 # No changes for version 0
0: '', 0: '',
1: ('* We want to collect the Git version. *\n' 1: (' We want to collect the Git version. \n'
'* We want to collect information about the HTTP *\n' ' We want to collect information about the HTTP \n'
'* requests that depot_tools makes, and the git and *\n' ' requests that depot_tools makes, and the git and \n'
'* cipd commands it executes. *\n' ' cipd commands it executes. \n'
'* *\n' ' \n'
'* We only collect known strings to make sure we *\n' ' We only collect known strings to make sure we \n'
'* don\'t record PII. *') ' don\'t record PII. ')
} }