Edward Lemur | 32e3d1e | 2018-07-12 00:54:05 +0000 | [diff] [blame] | 1 | #!/usr/bin/env python |
| 2 | # Copyright (c) 2018 The Chromium Authors. All rights reserved. |
| 3 | # Use of this source code is governed by a BSD-style license that can be |
| 4 | # found in the LICENSE file. |
| 5 | |
| 6 | import sys |
| 7 | import urllib2 |
| 8 | |
| 9 | |
| 10 | APP_URL = 'https://cit-cli-metrics.appspot.com' |
| 11 | |
| 12 | |
| 13 | def main(): |
| 14 | metrics = raw_input() |
| 15 | try: |
| 16 | urllib2.urlopen(APP_URL + '/upload', metrics) |
| 17 | except urllib2.HTTPError: |
| 18 | pass |
| 19 | |
| 20 | return 0 |
| 21 | |
| 22 | |
| 23 | if __name__ == '__main__': |
| 24 | sys.exit(main()) |