summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw1999-12-02 17:00:18 +0000
committerbwarsaw1999-12-02 17:00:18 +0000
commit3074db07f156ad521e9eae9e06dee488a77875fe (patch)
tree00855aee6469a9bd7bdd515e7e718de9068a49c3
parenta3056919c367453cc6538164a0398ddca4ec47cc (diff)
downloadmailman-3074db07f156ad521e9eae9e06dee488a77875fe.tar.gz
mailman-3074db07f156ad521e9eae9e06dee488a77875fe.tar.zst
mailman-3074db07f156ad521e9eae9e06dee488a77875fe.zip
Include len of msg.recips in log msg
-rw-r--r--Mailman/Handlers/SMTPDirect.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Mailman/Handlers/SMTPDirect.py b/Mailman/Handlers/SMTPDirect.py
index 5e39faa67..fd283e713 100644
--- a/Mailman/Handlers/SMTPDirect.py
+++ b/Mailman/Handlers/SMTPDirect.py
@@ -44,7 +44,9 @@ def process(mlist, msg):
refused = conn.sendmail(msg.GetSender(), msg.recips, str(msg))
finally:
t1 = time.time()
- mlist.LogMsg('smtp', 'smtp completed in %.3f seconds' % (t1-t0))
+ mlist.LogMsg('smtp',
+ 'smtp for %d recips, completed in %.3f seconds' %
+ (len(msg.recips), (t1-t0)))
conn.quit()
except smtplib.SMTPRecipientsRefused, e:
refused = e.recipients