Mercurial > prosody-hg
diff plugins/adhoc/adhoc.lib.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 |
| parents | 6f689c155186 |
| children | 4d939d2b1574 |
line wrap: on
line diff
--- a/plugins/adhoc/adhoc.lib.lua Mon Jul 23 16:42:26 2012 +0100 +++ b/plugins/adhoc/adhoc.lib.lua Mon Jul 23 17:32:33 2012 +0100 @@ -65,8 +65,8 @@ if (action == "prev") or (action == "next") or (action == "complete") then actions:tag(action):up(); else - module:log("error", 'Command "'..command.name.. - '" at node "'..command.node..'" provided an invalid action "'..action..'"'); + module:log("error", "Command %q at node %q provided an invalid action %q", + command.name, command.node, action); end end cmdtag:add_child(actions);
