Skip to content

Commit

Permalink
Display the label of the notice we're sending in emit_notices
Browse files Browse the repository at this point in the history
Signed-off-by: Brian Rosner <brosner@gmail.com>
  • Loading branch information
diox authored and brosner committed Sep 10, 2010
1 parent ed72c3f commit f35917a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notification/engine.py
Expand Up @@ -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)
Expand Down

0 comments on commit f35917a

Please sign in to comment.