diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-07-23 17:32:33 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-07-23 17:32:33 +0100 |
commit | e89b006f03f692a7e807c54757f0623302c40b85 (patch) | |
tree | 9c9c3219211b2f9e2eca26d188f9f44924922db7 /plugins/mod_posix.lua | |
parent | badc4159d600642f97d064a7f74c2ff68dda8abf (diff) | |
download | prosody-e89b006f03f692a7e807c54757f0623302c40b85.tar.gz prosody-e89b006f03f692a7e807c54757f0623302c40b85.zip |
Hopefully inert commit to clean up logging across a number of modules, removing all cases of concatenation when building log messages
Diffstat (limited to 'plugins/mod_posix.lua')
-rw-r--r-- | plugins/mod_posix.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/mod_posix.lua b/plugins/mod_posix.lua index 1670ac95..db594ccc 100644 --- a/plugins/mod_posix.lua +++ b/plugins/mod_posix.lua @@ -34,19 +34,19 @@ module:hook("server-started", function () if gid then local success, msg = pposix.setgid(gid); if success then - module:log("debug", "Changed group to "..gid.." successfully."); + module:log("debug", "Changed group to %s successfully.", gid); else - module:log("error", "Failed to change group to "..gid..". Error: "..msg); - prosody.shutdown("Failed to change group to "..gid); + module:log("error", "Failed to change group to %s. Error: %s", gid, msg); + prosody.shutdown("Failed to change group to %s", gid); end end if uid then local success, msg = pposix.setuid(uid); if success then - module:log("debug", "Changed user to "..uid.." successfully."); + module:log("debug", "Changed user to %s successfully.", uid); else - module:log("error", "Failed to change user to "..uid..". Error: "..msg); - prosody.shutdown("Failed to change user to "..uid); + module:log("error", "Failed to change user to %s. Error: %s", uid, msg); + prosody.shutdown("Failed to change user to %s", uid); end end end); |