summaryrefslogtreecommitdiff
path: root/zuul/connection
diff options
context:
space:
mode:
Diffstat (limited to 'zuul/connection')
-rw-r--r--zuul/connection/__init__.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/zuul/connection/__init__.py b/zuul/connection/__init__.py
index ff0807dac..23c776aca 100644
--- a/zuul/connection/__init__.py
+++ b/zuul/connection/__init__.py
@@ -14,6 +14,8 @@
import abc
+from zuul.lib.logutil import get_annotated_logger
+
class BaseConnection(object, metaclass=abc.ABCMeta):
"""Base class for connections.
@@ -42,10 +44,10 @@ class BaseConnection(object, metaclass=abc.ABCMeta):
self.connection_config = connection_config
def logEvent(self, event):
- self.log.debug(
- 'Scheduling event from {connection}: {event}'.format(
- connection=self.connection_name,
- event=event))
+ log = get_annotated_logger(self.log, event.zuul_event_id)
+ log.debug('Scheduling event from {connection}: {event}'.format(
+ connection=self.connection_name,
+ event=event))
try:
if self.sched.statsd:
self.sched.statsd.incr(