Software /
code /
prosody
Diff
net/server.lua @ 740:cc25d75b4027
server.lua: Use Prosody logger for errors, silence non-errors
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sat, 17 Jan 2009 14:53:20 +0000 |
parent | 739:1def06cd9311 |
child | 741:97577b6c07ca |
line wrap: on
line diff
--- a/net/server.lua Sat Jan 17 04:45:08 2009 +0000 +++ b/net/server.lua Sat Jan 17 14:53:20 2009 +0000 @@ -17,8 +17,10 @@ tbl[ i ] = nil end end -local out_put = print -local out_error = print + +local log, table_concat = require ("util.logger").init("socket"), table.concat; +local out_put = function () end +local out_error = function (...) return log("warn", table_concat{...}); end local mem_free = collectgarbage ----------------------------------// DECLARATION //--