]> review.fuel-infra Code Review - openstack-build/heat-build.git/commitdiff
Fix reporting of RemoteError exceptions from AMQP
authorZane Bitter <zbitter@redhat.com>
Wed, 11 Apr 2012 12:03:37 +0000 (14:03 +0200)
committerZane Bitter <zbitter@redhat.com>
Wed, 11 Apr 2012 12:03:37 +0000 (14:03 +0200)
Signed-off-by: Zane Bitter <zbitter@redhat.com>
heat/rpc/amqp.py

index 3faec435d635335a96f92beec626fba450e3f483..c00849a3b0b55c895fbe4db0f2d7b907ecc98d2a 100644 (file)
@@ -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)