Mercurial > kallithea
diff rhodecode/model/notification.py @ 2077:179604334d98 beta
code garden
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Thu, 01 Mar 2012 00:30:41 +0200 |
parents | 87f0800abc7b |
children | 0e27da019f84 |
line wrap: on
line diff
--- a/rhodecode/model/notification.py Wed Feb 29 23:16:20 2012 +0200 +++ b/rhodecode/model/notification.py Thu Mar 01 00:30:41 2012 +0200 @@ -85,13 +85,19 @@ if obj: recipients_objs.append(obj) recipients_objs = set(recipients_objs) + log.debug('sending notifications %s to %s' % ( + type_, recipients_objs) + ) else: # empty recipients means to all admins recipients_objs = User.query().filter(User.admin == True).all() - - notif = Notification.create(created_by=created_by_obj, subject=subject, - body=body, recipients=recipients_objs, - type_=type_) + log.debug('sending notifications %s to admins: %s' % ( + type_, recipients_objs) + ) + notif = Notification.create( + created_by=created_by_obj, subject=subject, + body=body, recipients=recipients_objs, type_=type_ + ) if with_email is False: return notif