diff options
Diffstat (limited to 'Mailman/Deliverer.py')
| -rw-r--r-- | Mailman/Deliverer.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Mailman/Deliverer.py b/Mailman/Deliverer.py index dd468abda..0754977d5 100644 --- a/Mailman/Deliverer.py +++ b/Mailman/Deliverer.py @@ -94,9 +94,9 @@ class Deliverer: cmdproc.write(self.QuotePeriods(msg.body)) status = cmdproc.close() if status: - sys.stderr.write('Non-zero exit status: %d' - '\nCommand: %s' % ((status >> 8), cmd)) - + self.LogMsg('deliverer', + 'Non-zero exit status: %d\nCommand: %s' + (status >> 8), cmd) def DeliverToList(self, msg, recipients, header="", footer="", remove_to=0, tmpfile_prefix = ""): @@ -136,10 +136,10 @@ class Deliverer: cmdproc.write(footer) status = cmdproc.close() - if status: - sys.stderr.write('Non-zero exit status: %d' - '\nCommand: %s' % ((status >> 8), cmd)) + self.LogMsg('deliverer', + 'Non-zero exit status: %d\nCommand: %s', + (status >> 8), cmd) def SendPostAck(self, msg, sender): subject = msg.getheader('subject') |
