Merge "Annotate QueueItem logger"

This commit is contained in:
Zuul 2019-09-08 05:59:41 +00:00 committed by Gerrit Code Review
commit fd09f6b479
1 changed files with 2 additions and 1 deletions

View File

@ -2109,9 +2109,10 @@ class QueueItem(object):
holds the current `BuildSet` as well as all previous `BuildSets` that were
produced for this `QueueItem`.
"""
log = logging.getLogger("zuul.QueueItem")
def __init__(self, queue, change, event):
log = logging.getLogger("zuul.QueueItem")
self.log = get_annotated_logger(log, event)
self.pipeline = queue.pipeline
self.queue = queue
self.change = change # a ref