diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-11-26 22:23:51 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-11-26 22:23:51 +0000 |
commit | 422a717900a10b8cd991b339bd0a540840695866 (patch) | |
tree | 4fc07b991365e5557975d9b4fda4d22bf28bb501 /net | |
parent | 7dae521ba5a3fdc39c0bba3e1d5ade1c0812be1e (diff) | |
download | prosody-422a717900a10b8cd991b339bd0a540840695866.tar.gz prosody-422a717900a10b8cd991b339bd0a540840695866.zip |
net.server_event: tostring() some debug logging parameters
Diffstat (limited to 'net')
-rw-r--r-- | net/server_event.lua | 6 |
1 files 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( )
|