diff --git a/gclient_utils.py b/gclient_utils.py index 718284852..fcdac884b 100644 --- a/gclient_utils.py +++ b/gclient_utils.py @@ -87,6 +87,7 @@ def CheckCall(command, print_error=True, **kwargs): Works on python 2.4 """ + logging.info("CheckCall(%s)" % command) try: stderr = None if not print_error: @@ -98,6 +99,7 @@ def CheckCall(command, print_error=True, **kwargs): if process.returncode: raise CheckCallError(command, kwargs.get('cwd', None), process.returncode, std_out, std_err) + logging.info("CheckCall done") return std_out, std_err diff --git a/trychange.py b/trychange.py index 88129e72b..b1b328ff2 100755 --- a/trychange.py +++ b/trychange.py @@ -336,7 +336,9 @@ def _SendChangeHTTP(options): logging.info(options.diff) try: + logging.info('Opening connection...') connection = urllib.urlopen(url, urllib.urlencode(values), proxies=proxies) + logging.info('Done') except IOError, e: logging.info(str(e)) if (values.get('bot') and len(e.args) > 2 and @@ -347,7 +349,9 @@ def _SendChangeHTTP(options): str(e.args))) if not connection: raise NoTryServerAccess('%s is unaccessible.' % url) + logging.info('Reading response...') response = connection.read() + logging.info('Done') if response != 'OK': raise NoTryServerAccess('%s is unaccessible. Got:\n%s' % (url, response))