aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-01-17 14:53:20 +0000
committerMatthew Wild <mwild1@gmail.com>2009-01-17 14:53:20 +0000
commit75126c8d0534ca14de849a8d5c459391d7bd089b (patch)
treebb467f43682eb5eee2954cd838f9ae4d1fbadb48
parentc0dbcb4389fa5470c9fc7f674fc7fa698b693c02 (diff)
downloadprosody-75126c8d0534ca14de849a8d5c459391d7bd089b.tar.gz
prosody-75126c8d0534ca14de849a8d5c459391d7bd089b.zip
server.lua: Use Prosody logger for errors, silence non-errors
-rw-r--r--net/server.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/server.lua b/net/server.lua
index a9147274..5de8c061 100644
--- a/net/server.lua
+++ b/net/server.lua
@@ -17,8 +17,10 @@ local clean = function( tbl )
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 //--