aboutsummaryrefslogtreecommitdiffstats
path: root/net/server.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-10-04 16:05:11 +0100
committerMatthew Wild <mwild1@gmail.com>2009-10-04 16:05:11 +0100
commitf25a7309ed1722ee6c8a3b46a293e1fe600ef737 (patch)
tree9a976ca35a2aaf1b14febb0ce1eb8c7d24ff3e93 /net/server.lua
parente03f835ae74293ea5d373d53a6680f1888e40f97 (diff)
downloadprosody-f25a7309ed1722ee6c8a3b46a293e1fe600ef737.tar.gz
prosody-f25a7309ed1722ee6c8a3b46a293e1fe600ef737.zip
net.server: Small logging improvements
Diffstat (limited to 'net/server.lua')
-rw-r--r--net/server.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/server.lua b/net/server.lua
index a0f77c38..54eadbc6 100644
--- a/net/server.lua
+++ b/net/server.lua
@@ -481,10 +481,10 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
readtraffic = readtraffic + count
_readtraffic = _readtraffic + count
_readtimes[ handler ] = _currenttime
- --out_put( "server.lua: read data '", buffer, "', error: ", err )
+ --out_put( "server.lua: read data '", buffer:gsub("[^%w%p ]", "."), "', error: ", err )
return dispatch( handler, buffer, err )
else -- connections was closed or fatal error
- out_put( "server.lua: client ", tostring(ip), ":", tostring(clientport), " error: ", tostring(err) )
+ out_put( "server.lua: client ", tostring(ip), ":", tostring(clientport), " read error: ", tostring(err) )
fatalerror = true
disconnect( handler, err )
_ = handler and handler.close( )
@@ -521,7 +521,7 @@ wrapconnection = function( server, listeners, socket, ip, serverport, clientport
_writetimes[ handler ] = _currenttime
return true
else -- connection was closed during sending or fatal error
- out_put( "server.lua: client ", tostring(ip), ":", tostring(clientport), " error: ", tostring(err) )
+ out_put( "server.lua: client ", tostring(ip), ":", tostring(clientport), " write error: ", tostring(err) )
fatalerror = true
disconnect( handler, err )
_ = handler and handler.close( )