zmirror: Fix printing of list of stream failures.

(imported from commit 0d573b412809263dbbacdf1b475adac440dae352)
This commit is contained in:
Tim Abbott 2013-01-02 10:22:08 -05:00
parent 2919ce2544
commit f65b130b45

View file

@ -149,7 +149,7 @@ def zephyr_bulk_subscribe(subs):
# retrying the next time the bot checks its subscriptions are # retrying the next time the bot checks its subscriptions are
# up to date. # up to date.
logger.exception("Error subscribing to streams (will retry automatically):") logger.exception("Error subscribing to streams (will retry automatically):")
logging.warning("Streams were: %s" % ((cls for cls, instance, recipient in subs),)) logging.warning("Streams were: %s" % (list(cls for cls, instance, recipient in subs),))
return return
try: try:
actual_zephyr_subs = [cls for (cls, _, _) in zephyr._z.getSubscriptions()] actual_zephyr_subs = [cls for (cls, _, _) in zephyr._z.getSubscriptions()]