X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=lib%2Fmuff%2Fmuffsock.py;h=40fffa56bdc6d0aab1f07765108a6d05eda48d53;hp=67010b1d62d5150f9f4c816c56329bb72cd5affc;hb=994d6e52ce3d5c719991e8f798642cdb8a24b7d1;hpb=0f39af78818acbbee0b99145ff5ff303553027c6 diff --git a/lib/muff/muffsock.py b/lib/muff/muffsock.py index 67010b1..40fffa5 100644 --- a/lib/muff/muffsock.py +++ b/lib/muff/muffsock.py @@ -21,8 +21,7 @@ def check_for_connection(newsocket): return None # note that we got one - # TODO: we should log this crap somewhere - print "Connection from", address + muffmisc.log("Connection from " + address[0]) # disable blocking so we can proceed whether or not we can send/receive connection.setblocking(0) @@ -60,8 +59,7 @@ def initialize_server_socket(): newsocket.listen(1) # note that we're now ready for user connections - # TODO: we should log this crap somewhere - print "Waiting for connection(s)..." + muffmisc.log("Waiting for connection(s)...") # store this in a globally-accessible place muffvars.newsocket = newsocket @@ -70,8 +68,7 @@ def destroy_all_sockets(): """Go through all connected users and close their sockets.""" # note that we're closing all sockets - # TODO: we should log this crap somewhere - print "Closing remaining connections..." + muffmisc.log("Closing remaining connections...") # iterate over each connected user and close their associated sockets for user in muffvars.userlist: