Merge "set up logging for propose-final-releases"

This commit is contained in:
Zuul 2018-03-05 15:00:40 +00:00 committed by Gerrit Code Review
commit ddb7d74f9f

View File

@ -16,9 +16,11 @@ from __future__ import print_function
import argparse
import atexit
import logging
import os.path
import re
import shutil
import sys
import tempfile
import openstack_releases
@ -108,6 +110,14 @@ def main():
def verbose(msg):
pass
# Set up logging, including making some loggers quiet.
logging.basicConfig(
format='%(levelname)7s: %(message)s',
stream=sys.stdout,
level=logging.DEBUG if args.verbose else logging.INFO,
)
logging.getLogger('urllib3.connectionpool').setLevel(logging.WARNING)
deliverables_dir = args.deliverables_dir
workdir = tempfile.mkdtemp(prefix='releases-')