summaryrefslogtreecommitdiffstats
path: root/Doc/library/smtplib.rst
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2015-04-16 21:14:42 (GMT)
committerR David Murray <rdmurray@bitdance.com>2015-04-16 21:14:42 (GMT)
commit0c49b896e6d78fbe3e52d1454f4f4112a3473a00 (patch)
treefc409039b96b9917b6f0b67587e9f616231f1446 /Doc/library/smtplib.rst
parent4c7f995e805f4fddcf54b90f35ea30c7e26a4a95 (diff)
downloadcpython-0c49b896e6d78fbe3e52d1454f4f4112a3473a00.zip
cpython-0c49b896e6d78fbe3e52d1454f4f4112a3473a00.tar.gz
cpython-0c49b896e6d78fbe3e52d1454f4f4112a3473a00.tar.bz2
#16914: add timestamps to smtplib debugging output via new debuglevel 2.
Patch by Gavin Chappell and Maciej Szulik.
Diffstat (limited to 'Doc/library/smtplib.rst')
-rw-r--r--Doc/library/smtplib.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/smtplib.rst b/Doc/library/smtplib.rst
index 74de77b..2805a93 100644
--- a/Doc/library/smtplib.rst
+++ b/Doc/library/smtplib.rst
@@ -189,8 +189,9 @@ An :class:`SMTP` instance has the following methods:
.. method:: SMTP.set_debuglevel(level)
- Set the debug output level. A true value for *level* results in debug messages
- for connection and for all messages sent to and received from the server.
+ Set the debug output level. A value of 1 or ``True`` for *level* results in debug
+ messages for connection and for all messages sent to and received from the server.
+ A value of 2 for *level* results in these messages being timestamped.
.. method:: SMTP.docmd(cmd, args='')