From 51f44f4cbac250ff28b8bfd8e996ed6e29dafe9d Mon Sep 17 00:00:00 2001 From: "szym@chromium.org" Date: Sat, 8 Oct 2011 02:20:44 +0000 Subject: [PATCH] Move the logging handler hack after the last use of subprocess2 before options are parsed and logging is properly configured with basicConfig. This re-enables git try --verbose/--dry_run. Review URL: http://codereview.chromium.org/8205023 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@104633 0039d316-1c4b-4281-b951-d872f2087c98 --- git_try.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/git_try.py b/git_try.py index 9435fe78c..97f86dda5 100755 --- a/git_try.py +++ b/git_try.py @@ -51,11 +51,11 @@ if __name__ == '__main__': rietveld_url = GetRietveldServerUrl() if rietveld_url: args.extend(['--rietveld_url', GetRietveldServerUrl()]) - # Hack around a limitation in logging. - logging.getLogger().handlers = [] try: cl = git_cl.Changelist() change = cl.GetChange(cl.GetUpstreamBranch(), None) + # Hack around a limitation in logging. + logging.getLogger().handlers = [] sys.exit(trychange.TryChange( args, change, swallow_exception=False, prog='git try',