Software /
code /
prosody
Changeset
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 |
parents | 739:1def06cd9311 |
children | 741:97577b6c07ca |
files | net/server.lua |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
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 //--