diff options
| author | bwarsaw | 1999-12-02 17:00:18 +0000 |
|---|---|---|
| committer | bwarsaw | 1999-12-02 17:00:18 +0000 |
| commit | 3074db07f156ad521e9eae9e06dee488a77875fe (patch) | |
| tree | 00855aee6469a9bd7bdd515e7e718de9068a49c3 | |
| parent | a3056919c367453cc6538164a0398ddca4ec47cc (diff) | |
| download | mailman-3074db07f156ad521e9eae9e06dee488a77875fe.tar.gz mailman-3074db07f156ad521e9eae9e06dee488a77875fe.tar.zst mailman-3074db07f156ad521e9eae9e06dee488a77875fe.zip | |
Include len of msg.recips in log msg
| -rw-r--r-- | Mailman/Handlers/SMTPDirect.py | 4 |
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 |
