Commits

bc Wong committed 6b2d9b3 Draft

Log with sockaddr instead

(Good. So this is how hg works.)

Comments (0)

Files changed (1)

cherrypy/wsgiserver/wsgiserver3.py

             try:
                 self.bind(af, socktype, proto)
             except socket.error, serr:
-                msg = "%s -- (%s: %s)" % (msg, self.bind_addr, serr)
+                msg = "%s -- (%s: %s)" % (msg, sa, serr)
                 if self.socket:
                     self.socket.close()
                 self.socket = None