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 argparse
import atexit import atexit
import logging
import os.path import os.path
import re import re
import shutil import shutil
import sys
import tempfile import tempfile
import openstack_releases import openstack_releases
@ -108,6 +110,14 @@ def main():
def verbose(msg): def verbose(msg):
pass 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 deliverables_dir = args.deliverables_dir
workdir = tempfile.mkdtemp(prefix='releases-') workdir = tempfile.mkdtemp(prefix='releases-')