changeset 5085:d3d9d1402763

issue2550823 Improve mailgw logging for node creation errors. Add a call to logger.exception when an error is raised on creation
author John Rouillard <rouilj@ieee.org>
date Sat, 18 Jun 2016 00:39:01 -0400
parents 675b3b3d88f0
children 2b551b6b0830
files CHANGES.txt roundup/mailgw.py
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/CHANGES.txt	Fri Jun 17 22:10:01 2016 -0400
+++ b/CHANGES.txt	Sat Jun 18 00:39:01 2016 -0400
@@ -111,6 +111,8 @@
   they appear to be part of the standard python since at least 2.6.
   Also the quoted url is obsolete. See ticket if you think you need
   the codecs.
+- issue2550823 improve mailgw logging for node creation errors.
+  Patch by r.david.murray (applied by John Rouillard).
 
 2016-01-11: 1.5.1
 
--- a/roundup/mailgw.py	Fri Jun 17 22:10:01 2016 -0400
+++ b/roundup/mailgw.py	Sat Jun 18 00:39:01 2016 -0400
@@ -1198,6 +1198,7 @@
                             ) % locals()
                 self.nodeid = self.cl.create(**self.props)
         except (TypeError, IndexError, ValueError, exceptions.Reject), message:
+            self.mailgw.logger.exception("Rejecting email due to node creation error:")
             raise MailUsageError, _("""
 There was a problem with the message you sent:
    %(message)s

Roundup Issue Tracker: http://roundup-tracker.org/