diff options
author | Craig Tiller <ctiller@google.com> | 2017-03-01 11:30:03 -0800 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2017-03-01 11:30:03 -0800 |
commit | 9ef6fc8d0e62b5566347810e0b36e6b71afefcc6 (patch) | |
tree | 078c6050566a53e70b0db0be079dc6bded57b611 /tools/run_tests/python_utils | |
parent | 295df6da9aa8f6a51cd050ddf92f047d9179d9f2 (diff) | |
parent | f1666d48244143ddaf463523030ee76cc0fe691c (diff) |
Merge github.com:grpc/grpc into stream_owned_slice
Diffstat (limited to 'tools/run_tests/python_utils')
-rwxr-xr-x | tools/run_tests/python_utils/jobset.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/run_tests/python_utils/jobset.py b/tools/run_tests/python_utils/jobset.py index 7b2c62d1a2..f3047431e2 100755 --- a/tools/run_tests/python_utils/jobset.py +++ b/tools/run_tests/python_utils/jobset.py @@ -31,6 +31,7 @@ from __future__ import print_function +import logging import multiprocessing import os import platform @@ -128,6 +129,8 @@ _TAG_COLOR = { 'SKIPPED': 'cyan' } +_FORMAT = '%(asctime)-15s %(message)s' +logging.basicConfig(level=logging.INFO, format=_FORMAT) def message(tag, msg, explanatory_text=None, do_newline=False): if message.old_tag == tag and message.old_msg == msg and not explanatory_text: @@ -137,8 +140,8 @@ def message(tag, msg, explanatory_text=None, do_newline=False): try: if platform_string() == 'windows' or not sys.stdout.isatty(): if explanatory_text: - print(explanatory_text) - print('%s: %s' % (tag, msg)) + logging.info(explanatory_text) + logging.info('%s: %s', tag, msg) else: sys.stdout.write('%s%s%s\x1b[%d;%dm%s\x1b[0m: %s%s' % ( _BEGINNING_OF_LINE, |