From 8511c2261279227034ca6f000c2c5b95e3e9ad82 Mon Sep 17 00:00:00 2001 From: Gaetan Delannay Date: Fri, 12 Dec 2014 14:47:39 +0100 Subject: [PATCH] [gen] Mixin.xml: if an error occurs, log it before xml-marshalling it to the caller app. --- gen/mixins/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gen/mixins/__init__.py b/gen/mixins/__init__.py index 9e10a2d..919bbb0 100644 --- a/gen/mixins/__init__.py +++ b/gen/mixins/__init__.py @@ -533,6 +533,7 @@ class BaseMixin: except Exception, e: tb = sutils.Traceback.get() res = XmlMarshaller(rootTag='exception').marshall(tb) + self.log(tb, type='error') import transaction transaction.abort() return res