Skip to content

Commit 51ddd5b

Browse files
committed
issue2550823 Improve mailgw logging for node creation errors. Add a
call to logger.exception when an error is raised on creation
1 parent c24925e commit 51ddd5b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ Fixed:
111111
they appear to be part of the standard python since at least 2.6.
112112
Also the quoted url is obsolete. See ticket if you think you need
113113
the codecs.
114+
- issue2550823 improve mailgw logging for node creation errors.
115+
Patch by r.david.murray (applied by John Rouillard).
114116

115117
2016-01-11: 1.5.1
116118

roundup/mailgw.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1198,6 +1198,7 @@ def create_node(self):
11981198
) % locals()
11991199
self.nodeid = self.cl.create(**self.props)
12001200
except (TypeError, IndexError, ValueError, exceptions.Reject), message:
1201+
self.mailgw.logger.exception("Rejecting email due to node creation error:")
12011202
raise MailUsageError, _("""
12021203
There was a problem with the message you sent:
12031204
%(message)s

0 commit comments

Comments
 (0)