Comparison

core/modulemanager.lua @ 733:b1aedec00661

modulemanager: Comment out logging of modules hooking stanzas, too noisy
author Matthew Wild <mwild1@gmail.com>
date Fri, 16 Jan 2009 05:38:03 +0000
parent 713:2afd6d9e21cd
child 745:5a343599cd3e
comparison
equal deleted inserted replaced
732:0343739f3d71 733:b1aedec00661
232 local msg = (tag == "iq") and "namespace" or "payload namespace"; 232 local msg = (tag == "iq") and "namespace" or "payload namespace";
233 if not handlers then 233 if not handlers then
234 stanza_handlers:add(module.host, origin_type, tag, xmlns, handler); 234 stanza_handlers:add(module.host, origin_type, tag, xmlns, handler);
235 handler_info[handler] = module; 235 handler_info[handler] = module;
236 handler_table:add(module.host, module.name, {module.host, origin_type, tag, xmlns}); 236 handler_table:add(module.host, module.name, {module.host, origin_type, tag, xmlns});
237 module:log("debug", "I now handle tag '%s' [%s] with %s '%s'", tag, origin_type, msg, xmlns); 237 --module:log("debug", "I now handle tag '%s' [%s] with %s '%s'", tag, origin_type, msg, xmlns);
238 else 238 else
239 module:log("warn", "I wanted to handle tag '%s' [%s] with %s '%s' but mod_%s already handles that", tag, origin_type, msg, xmlns, handler_info[handlers[1]].module.name); 239 module:log("warn", "I wanted to handle tag '%s' [%s] with %s '%s' but mod_%s already handles that", tag, origin_type, msg, xmlns, handler_info[handlers[1]].module.name);
240 end 240 end
241 end 241 end
242 242