From 4a8e9f4e4215cc9bc9499ebda2017263b85c06f0 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Fri, 5 Oct 2001 17:10:31 +0000 Subject: SMTPServer.__init__(): Print the start information on the DEBUGSTREAM so that it can be suppressed. --- Lib/smtpd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v0.12