From 422a717900a10b8cd991b339bd0a540840695866 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 26 Nov 2009 22:23:51 +0000 Subject: net.server_event: tostring() some debug logging parameters --- net/server_event.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/net/server_event.lua b/net/server_event.lua index be006cab..5e2424ea 100644 --- a/net/server_event.lua +++ b/net/server_event.lua @@ -538,9 +538,9 @@ do 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 @@ do 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( ) -- cgit v1.2.3