Merge "kolla-build log to stderr"

This commit is contained in:
Jenkins 2017-06-16 09:59:25 +00:00 committed by Gerrit Code Review
commit 2e5be969e5
1 changed files with 1 additions and 1 deletions

View File

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