summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>2001-10-05 17:10:31 (GMT)
committerBarry Warsaw <barry@python.org>2001-10-05 17:10:31 (GMT)
commit4a8e9f4e4215cc9bc9499ebda2017263b85c06f0 (patch)
tree6c7c6af87c180d6bfe0c89960fc4694e5690893f /Lib
parentef67ded6c739f1c1af0cfbfdbed73a2bec79a50a (diff)
downloadcpython-4a8e9f4e4215cc9bc9499ebda2017263b85c06f0.zip
cpython-4a8e9f4e4215cc9bc9499ebda2017263b85c06f0.tar.gz
cpython-4a8e9f4e4215cc9bc9499ebda2017263b85c06f0.tar.bz2
SMTPServer.__init__(): Print the start information on the DEBUGSTREAM
so that it can be suppressed.
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/smtpd.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/smtpd.py b/Lib/smtpd.py
index 6dace59..9406de1 100755
--- a/Lib/smtpd.py
+++ b/Lib/smtpd.py
@@ -282,7 +282,8 @@ class SMTPServer(asyncore.dispatcher):
self.socket.getsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR) | 1)
self.bind(localaddr)
self.listen(5)
- print '%s started at %s\n\tLocal addr: %s\n\tRemote addr:%s' % (
+ print >> DEBUGSTREAM, \
+ '%s started at %s\n\tLocal addr: %s\n\tRemote addr:%s' % (
self.__class__.__name__, time.ctime(time.time()),
localaddr, remoteaddr)