mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
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
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user