changeset 1433:df8da7e4c2bf

mod_latex: Log debug message when actually deciding to do LaTeX replacing
author Kim Alvefur <zash@zash.se>
date Wed, 11 Jun 2014 20:38:41 +0200
parents ee2302b78c74
children 1caf971a2f0f
files mod_latex/mod_latex.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_latex/mod_latex.lua	Wed Jun 11 20:38:07 2014 +0200
+++ b/mod_latex/mod_latex.lua	Wed Jun 11 20:38:41 2014 +0200
@@ -5,12 +5,12 @@
 local xmlns_xhtml = "http://www.w3.org/1999/xhtml";
 
 local function replace_latex(data)
-	module:log("debug", "Replacing latex...");
 	local origin, stanza = data.origin, data.stanza;
 	local body = stanza:get_child_text("body");
 	if not body or not body:match("%$%$") then
 		return;
 	end
+	module:log("debug", "Replacing latex...");
 
 	local html = st.stanza("html", { xmlns = xmlns_xhtmlim })
 		:tag("body", { xmlns = xmlns_xhtml });