Separate listening port in startup logging
authorJeremy Stanley <fungi@yuggoth.org>
Sat, 24 Aug 2019 19:32:33 +0000 (19:32 +0000)
committerJeremy Stanley <fungi@yuggoth.org>
Sat, 24 Aug 2019 19:32:33 +0000 (19:32 +0000)
Using a port separator of ":" is vague in combination with IPv6
addresses, so separate the listening port number more clearly in the
startup log message.

mudpy/misc.py

index 63e4df4..1b2be37 100644 (file)
@@ -457,10 +457,8 @@ class Universe:
         self.listening_socket.listen(1)
 
         # note that we're now ready for user connections
         self.listening_socket.listen(1)
 
         # note that we're now ready for user connections
-        log(
-            "Listening for Telnet connections on: " +
-            host + ":" + str(port)
-        )
+        log("Listening for Telnet connections on %s port %s" % (
+                host, str(port)))
 
     def get_time(self):
         """Convenience method to get the elapsed time counter."""
 
     def get_time(self):
         """Convenience method to get the elapsed time counter."""