comparison mod_pastebin/mod_pastebin.lua @ 25:ea59a8d98b03

mod_pastebin: Comment some debug logging on every message
author Matthew Wild <mwild1@gmail.com>
date Fri, 02 Oct 2009 22:16:19 +0100
parents 72bcc0475e2f
children 3c18c2d03bc2
comparison
equal deleted inserted replaced
24:72bcc0475e2f 25:ea59a8d98b03
52 end 52 end
53 53
54 if not body then return; end 54 if not body then return; end
55 body = body:get_text(); 55 body = body:get_text();
56 56
57 module:log("debug", "Body(%s) length: %d", type(body), #(body or "")); 57 --module:log("debug", "Body(%s) length: %d", type(body), #(body or ""));
58 58
59 if body and #body > length_threshold then 59 if body and #body > length_threshold then
60 local url = pastebin_message(body); 60 local url = pastebin_message(body);
61 module:log("debug", "Pasted message as %s", url); 61 module:log("debug", "Pasted message as %s", url);
62 --module:log("debug", " stanza[bodyindex] = %q", tostring( stanza[bodyindex])); 62 --module:log("debug", " stanza[bodyindex] = %q", tostring( stanza[bodyindex]));