From 874edc5103e1ebbe1def1639ef056574dcd406e9 Mon Sep 17 00:00:00 2001 From: Josh Kearney Date: Sat, 20 Nov 2010 12:16:54 -0600 Subject: Use logging.exception instead --- nova/rpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova') diff --git a/nova/rpc.py b/nova/rpc.py index c7ff9ce6b..9938b0838 100644 --- a/nova/rpc.py +++ b/nova/rpc.py @@ -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)) -- cgit