net/server.lua

changeset 740
cc25d75b4027
parent 739
1def06cd9311
child 741
97577b6c07ca
--- 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 //--

mercurial