mirror of
https://github.com/python/cpython.git
synced 2026-02-01 04:02:20 +00:00
SMTPServer.__init__(): Print the start information on the DEBUGSTREAM
so that it can be suppressed.
This commit is contained in:
parent
ef67ded6c7
commit
4a8e9f4e42
1 changed files with 2 additions and 1 deletions
|
|
@ -282,7 +282,8 @@ def __init__(self, localaddr, remoteaddr):
|
|||
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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue