Software /
code /
prosody
Diff
net/server_event.lua @ 2239:c050074d453a
net.server_event: tostring() some debug logging parameters
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 26 Nov 2009 22:23:51 +0000 |
parent | 2238:0a6375e9b2e2 |
child | 2240:373e3fd8b862 |
line wrap: on
line diff
--- 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( )