##// END OF EJS Templates
events: updated logging for ignored events.
marcink -
r3398:030252b4 default
parent child Browse files
Show More
@@ -122,8 +122,10 b' class HipchatIntegrationType(Integration'
122 log.debug('event not valid: %r', event)
122 log.debug('event not valid: %r', event)
123 return
123 return
124
124
125 if event.name not in self.settings['events']:
125 allowed_events = self.settings['events']
126 log.debug('event ignored: %r', event)
126 if event.name not in allowed_events:
127 log.debug('event ignored: %r event %s not in allowed events %s',
128 event, event.name, allowed_events)
127 return
129 return
128
130
129 data = event.as_dict()
131 data = event.as_dict()
@@ -138,8 +138,10 b' class SlackIntegrationType(IntegrationTy'
138 log.debug('event not valid: %r', event)
138 log.debug('event not valid: %r', event)
139 return
139 return
140
140
141 if event.name not in self.settings['events']:
141 allowed_events = self.settings['events']
142 log.debug('event ignored: %r', event)
142 if event.name not in allowed_events:
143 log.debug('event ignored: %r event %s not in allowed events %s',
144 event, event.name, allowed_events)
143 return
145 return
144
146
145 data = event.as_dict()
147 data = event.as_dict()
@@ -170,8 +170,10 b' class WebhookIntegrationType(Integration'
170 log.debug('event not valid: %r', event)
170 log.debug('event not valid: %r', event)
171 return
171 return
172
172
173 if event.name not in self.settings['events']:
173 allowed_events = self.settings['events']
174 log.debug('event ignored: %r', event)
174 if event.name not in allowed_events:
175 log.debug('event ignored: %r event %s not in allowed events %s',
176 event, event.name, allowed_events)
175 return
177 return
176
178
177 data = event.as_dict()
179 data = event.as_dict()
General Comments 0
You need to be logged in to leave comments. Login now