Software /
code /
prosody
Diff
plugins/mod_component.lua @ 4993:5243b74a4cbb
Hopefully inert commit to clean up logging across a number of modules, removing all cases of concatenation when building log messages
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 23 Jul 2012 17:32:33 +0100 |
parent | 4806:27a99c289b90 |
child | 5013:ab693eea0869 |
line wrap: on
line diff
--- a/plugins/mod_component.lua Mon Jul 23 16:42:26 2012 +0100 +++ b/plugins/mod_component.lua Mon Jul 23 17:32:33 2012 +0100 @@ -124,7 +124,7 @@ 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