Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

Commit

Permalink
Remove logging of handler name
Browse files Browse the repository at this point in the history
This allow the handler to be anything
  • Loading branch information
ovv committed Jan 28, 2018
1 parent b3f61fa commit aef0429
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion slack/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def register(self, callback_id, handler, name='*'):
handler: Callback
name: Name of the action (optional).
"""
LOG.info('Registering %s, %s to %s', callback_id, name, handler.__name__)
LOG.info('Registering %s, %s to %s', callback_id, name, handler)
if name not in self._routes[callback_id]:
self._routes[callback_id][name] = []

Expand Down
2 changes: 1 addition & 1 deletion slack/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def register(self, command, handler):
if not command.startswith('/'):
command = f'/{command}'

LOG.info('Registering %s to %s', command, handler.__name__)
LOG.info('Registering %s to %s', command, handler)
self._routes[command].append(handler)

def dispatch(self, command):
Expand Down
2 changes: 1 addition & 1 deletion slack/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def register(self, event_type, handler, **detail):
handler: Callback
**detail: Additional key for routing
"""
LOG.info('Registering %s, %s to %s', event_type, detail, handler.__name__)
LOG.info('Registering %s, %s to %s', event_type, detail, handler)
if len(detail) > 1:
raise ValueError('Only one detail can be provided for additional routing')
elif not detail:
Expand Down

0 comments on commit aef0429

Please sign in to comment.