OLD | NEW |
1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 """Helper functions to upload data to logdog.""" | 5 """Helper functions to upload data to logdog.""" |
6 | 6 |
7 import logging | 7 import logging |
8 import os | 8 import os |
9 import sys | 9 import sys |
10 | 10 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 Returns: | 75 Returns: |
76 Link to view uploaded binary in logdog viewer. | 76 Link to view uploaded binary in logdog viewer. |
77 """ | 77 """ |
78 return get_logdog_client().get_viewer_url(name) | 78 return get_logdog_client().get_viewer_url(name) |
79 | 79 |
80 | 80 |
81 @decorators.Memoize | 81 @decorators.Memoize |
82 def get_logdog_client(): | 82 def get_logdog_client(): |
83 logging.info('Getting logdog client.') | 83 logging.info('Getting logdog client.') |
84 return bootstrap.ButlerBootstrap.probe().stream_client() | 84 return bootstrap.ButlerBootstrap.probe().stream_client() |
85 | |
OLD | NEW |