From 0974862b586f6e1589fb1d6fddd760e33bc5daff Mon Sep 17 00:00:00 2001 From: "maruel@chromium.org" Date: Tue, 26 Oct 2010 13:47:34 +0000 Subject: [PATCH] Lower logging level for http connection failure when falling back to svn access. Lowers the noise TBR=jochen BUG=none TEST=none Review URL: http://codereview.chromium.org/4151001 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@63885 0039d316-1c4b-4281-b951-d872f2087c98 --- trychange.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trychange.py b/trychange.py index e76ebba02..1600a5e41 100755 --- a/trychange.py +++ b/trychange.py @@ -336,7 +336,7 @@ def _SendChangeHTTP(options): try: connection = urllib.urlopen(url, urllib.urlencode(values), proxies=proxies) except IOError, e: - logging.warning(str(e)) + logging.info(str(e)) if (values.get('bot') and len(e.args) > 2 and e.args[2] == 'got a bad status line'): raise NoTryServerAccess('%s is unaccessible. Bad --bot argument?' % url) @@ -444,7 +444,7 @@ def GuessVCS(options, path): if e.returncode != errno.ENOENT and e.returncode != 128: # ENOENT == 2 = they don't have git installed. # 128 = git error code when not in a repo. - logging.warn('Unexpected error code: %s' % e.returncode) + logging.warning('Unexpected error code: %s' % e.returncode) raise raise NoTryServerAccess("Could not guess version control system. " "Are you in a working copy directory?")