From: Zane Bitter Date: Wed, 11 Apr 2012 12:03:37 +0000 (+0200) Subject: Fix reporting of RemoteError exceptions from AMQP X-Git-Tag: 2014.1~2059 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=95e10314952f1894b12fca1090759d4458ff785c;p=openstack-build%2Fheat-build.git Fix reporting of RemoteError exceptions from AMQP Signed-off-by: Zane Bitter --- diff --git a/heat/rpc/amqp.py b/heat/rpc/amqp.py index 3faec435..c00849a3 100644 --- a/heat/rpc/amqp.py +++ b/heat/rpc/amqp.py @@ -141,7 +141,7 @@ def msg_reply(msg_id, connection_pool, reply=None, failure=None, ending=False): with ConnectionContext(connection_pool) as conn: if failure: message = str(failure[1]) - tb = traceback.format_exception(*failure) + tb = ''.join(traceback.format_exception(*failure)) LOG.error(_("Returning exception %s to caller"), message) LOG.error(tb) failure = (failure[0].__name__, str(failure[1]), tb)