Kaydet (Commit) 4a8e9f4e authored tarafından Barry Warsaw's avatar Barry Warsaw

SMTPServer.__init__(): Print the start information on the DEBUGSTREAM

so that it can be suppressed.
üst ef67ded6
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment