Hopefully inert commit to clean up logging across a number of modules, removing all cases of concatenation when building log messages

This commit is contained in:
Matthew Wild 2012-07-23 17:32:33 +01:00
parent ff043a930b
commit e808645b53
11 changed files with 37 additions and 39 deletions

View file

@ -124,7 +124,7 @@ local xmlns_xmpp_streams = "urn:ietf:params:xml:ns:xmpp-streams";
function stream_callbacks.error(session, error, data, data2)
if session.destroyed then return; end
module:log("warn", "Error processing component stream: "..tostring(error));
module:log("warn", "Error processing component stream: %s", tostring(error));
if error == "no-stream" then
session:close("invalid-namespace");
elseif error == "parse-error" then