Merge "Build process outputs each line twice"

This commit is contained in:
Jenkins 2016-09-13 12:42:18 +00:00 committed by Gerrit Code Review
commit d312dfed95

View File

@ -63,6 +63,7 @@ def make_a_logger(conf=None, image_name=None):
if not log.handlers:
if conf is None or not conf.logs_dir or not image_name:
handler = logging.StreamHandler(sys.stdout)
log.propagate = False
else:
filename = os.path.join(conf.logs_dir, "%s.log" % image_name)
handler = logging.FileHandler(filename, delay=True)