Browse files

Display the label of the notice we're sending in emit_notices

Signed-off-by: Brian Rosner <brosner@gmail.com>
  • Loading branch information...
1 parent ed72c3f commit f35917a468a7e37bae540d2be233b1eea0f3f791 @diox diox committed with brosner Mar 31, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 notification/engine.py
View
2 notification/engine.py
@@ -47,7 +47,7 @@ def send_all():
notices = pickle.loads(str(queued_batch.pickled_data).decode("base64"))
for user, label, extra_context, on_site, sender in notices:
user = User.objects.get(pk=user)
- logging.info("emitting notice to %s" % user)
+ logging.info("emitting notice %s to %s" % (label, user))
# call this once per user to be atomic and allow for logging to
# accurately show how long each takes.
notification.send_now([user], label, extra_context, on_site, sender)

0 comments on commit f35917a

Please sign in to comment.