Changeset

51:6a40e44a2b8a

mod_muclogging: removed devel debug message stuff
author Thilo Cestonaro <thilo@cestona.ro>
date Sun, 18 Oct 2009 23:17:16 +0200
parents 50:a96d3f37d845
children 52:11d1d4ff8037
files mod_muclogging/mod_muclogging.lua
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mod_muclogging/mod_muclogging.lua	Sun Oct 18 22:39:36 2009 +0200
+++ b/mod_muclogging/mod_muclogging.lua	Sun Oct 18 23:17:16 2009 +0200
@@ -8,7 +8,7 @@
 local bareJid = require "util.jid".bare;
 local config_get = require "core.configmanager".get;
 local httpserver = require "net.httpserver";
-local dump = require "util.logger".dump;
+-- local dump = require "util.logger".dump;
 local config = {};
 
 --[[ LuaFileSystem 
@@ -209,7 +209,7 @@
 			local parsed = lom.parse("<xml>" .. content .. "</xml>");
 			if parsed ~= nil then
 				for _,stanza in ipairs(parsed) do
-					module:log("debug", "dump of stanza: \n%s", dump(stanza))
+					-- module:log("debug", "dump of stanza: \n%s", dump(stanza))
 					if stanza.attr ~= nil and stanza.attr.time ~= nil then
 						ret = ret .. "<a name=\"" .. stanza.attr.time .. "\" href=\"#" .. stanza.attr.time .. "\" class=\"timestuff\">[" .. stanza.attr.time .. "]</a> ";
 						if stanza[1] ~= nil then
@@ -304,7 +304,7 @@
 
 function module.load()
 	config = config_get("*", "core", "muclogging");
-	module:log("debug", "muclogging config: \n%s", dump(config));
+	-- module:log("debug", "muclogging config: \n%s", dump(config));
 	
 	if config.http_port ~= nil then
 		httpserver.new_from_config({ config.http_port }, "muclogging", handle_request);