diff --git a/rhodecode/events/__init__.py b/rhodecode/events/__init__.py --- a/rhodecode/events/__init__.py +++ b/rhodecode/events/__init__.py @@ -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 diff --git a/rhodecode/integrations/types/slack.py b/rhodecode/integrations/types/slack.py --- a/rhodecode/integrations/types/slack.py +++ b/rhodecode/integrations/types/slack.py @@ -146,7 +146,6 @@ class SlackIntegrationType(IntegrationTy 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