Use logging.exception instead

This commit is contained in:
Josh Kearney
2010-11-20 12:16:54 -06:00
parent bc4a038e3b
commit e92ec42295

View File

@@ -90,7 +90,7 @@ class Consumer(messaging.Consumer):
super(Consumer, self).__init__(*args, **kwargs)
break
except: # Catching all because carrot sucks
logging.warning("AMQP server on %s:%d is unreachable. " \
logging.exception("AMQP server on %s:%d is unreachable. " \
"Trying again in 30 seconds." % (
FLAGS.rabbit_host,
FLAGS.rabbit_port))