[New-bugs-announce] [issue16914] timestamping in smtplib.py to help troubleshoot server timeouts/delays

gac report at bugs.python.org
Thu Jan 10 13:41:48 CET 2013

New submission from gac:

I had cause to use smtplib to help me pinpoint why some outgoing mail was failing, but found that while it offered verbose logging (via debuglevel 1) this was without timestamps, making it difficult to make my case to the server operator that it was a server-side delay causing the issue. I've changed smtplib.py to add a second debugging level which includes timestamps down to microsecond granularity so that the debug log produced can pinpoint when a server isn't responding promptly.

debuglevel 1 is unchanged, so anyone depending on the output from this being in a particular format won't be affected (either by setting debuglevel to "1" or "true"), but if debuglevel 2 is used explicitly then the standard output is preceded by a timestamp.

components: Library (Lib)
files: smtplib.py.patch
keywords: patch
messages: 179538
nosy: gac
priority: normal
severity: normal
status: open
title: timestamping in smtplib.py to help troubleshoot server timeouts/delays
type: enhancement
versions: Python 3.4
Added file: http://bugs.python.org/file28667/smtplib.py.patch

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list