diff options
author | James E. Blair <jeblair@redhat.com> | 2017-10-03 13:29:11 -0700 |
---|---|---|
committer | James E. Blair <jeblair@redhat.com> | 2017-10-03 13:29:11 -0700 |
commit | 36ccdd1a7e142f237061bc2cbfe6173c21ba258d (patch) | |
tree | 4fcfae23640a864b7eefdcc0516e789a36faf35f /zuul/manager/__init__.py | |
parent | a332bab8861f2e1aff3b174f812d58095dee6216 (diff) | |
download | zuul-36ccdd1a7e142f237061bc2cbfe6173c21ba258d.tar.gz |
Include tenant in pipeline log messages
Pipeline names are not unique across tenants.
Change-Id: I2d63095fa6dd54943a69778fccddcefa25e72be7
Diffstat (limited to 'zuul/manager/__init__.py')
-rw-r--r-- | zuul/manager/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/zuul/manager/__init__.py b/zuul/manager/__init__.py index b692415ca..0d53fc802 100644 --- a/zuul/manager/__init__.py +++ b/zuul/manager/__init__.py @@ -43,7 +43,9 @@ class PipelineManager(object): """Abstract Base Class for enqueing and processing Changes in a Pipeline""" def __init__(self, sched, pipeline): - self.log = logging.getLogger("zuul.Pipeline.%s" % (pipeline.name,)) + self.log = logging.getLogger("zuul.Pipeline.%s.%s" % + (pipeline.layout.tenant.name, + pipeline.name,)) self.sched = sched self.pipeline = pipeline self.event_filters = [] |