events: add logging for all events triggered
This commit is contained in:
parent
d7cd766a07
commit
439422d073
2 changed files with 4 additions and 1 deletions
|
|
@ -16,8 +16,11 @@
|
|||
# RhodeCode Enterprise Edition, including its added features, Support services,
|
||||
# and proprietary license terms, please see https://rhodecode.com/licenses/
|
||||
|
||||
import logging
|
||||
from pyramid.threadlocal import get_current_registry
|
||||
|
||||
log = logging.getLogger()
|
||||
|
||||
|
||||
def trigger(event, registry=None):
|
||||
"""
|
||||
|
|
@ -29,6 +32,7 @@ def trigger(event, registry=None):
|
|||
# passing the registry as an argument to get rid of it.
|
||||
registry = registry or get_current_registry()
|
||||
registry.notify(event)
|
||||
log.debug('event %s triggered', event)
|
||||
|
||||
# Until we can work around the problem that VCS operations do not have a
|
||||
# pyramid context to work with, we send the events to integrations directly
|
||||
|
|
|
|||
|
|
@ -146,7 +146,6 @@ class SlackIntegrationType(IntegrationTypeBase):
|
|||
widget='checkbox_list',
|
||||
choices=sorted([e.name for e in cls.valid_events]),
|
||||
description="Events activated for this integration",
|
||||
# default=[e.name for e in cls.valid_events],
|
||||
name='events'
|
||||
))
|
||||
return schema
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue