# HG changeset patch # User Matthew Wild # Date 1259274231 0 # Node ID c050074d453acc454118c8fecf89679053b835cc # Parent 0a6375e9b2e2abea3b9e57ac0fac11c51dd0cd83 net.server_event: tostring() some debug logging parameters diff -r 0a6375e9b2e2 -r c050074d453a net/server_event.lua --- a/net/server_event.lua Thu Nov 26 22:22:03 2009 +0000 +++ b/net/server_event.lua Thu Nov 26 22:23:51 2009 +0000 @@ -538,9 +538,9 @@ end interface.readcallback = function( event ) -- called on read events - --vdebug( "new client read event, id/ip/port:", interface, ip, port ) + --vdebug( "new client read event, id/ip/port:", tostring(interface.id), tostring(ip), tostring(port) ) if interface.noreading or interface.fatalerror then -- leave this event - --vdebug( "leaving this event because:", interface.noreading or interface.fatalerror ) + --vdebug( "leaving this event because:", tostring(interface.noreading or interface.fatalerror) ) interface.eventread = nil return -1 end @@ -554,7 +554,7 @@ if interface._usingssl then -- handle luasec if interface.eventwritetimeout then -- ok, in the past writecallback was regged local ret = interface.writecallback( ) -- call it - --vdebug( "tried to write in readcallback, result:", ret ) + --vdebug( "tried to write in readcallback, result:", tostring(ret) ) end if interface.eventreadtimeout then interface.eventreadtimeout:close( )