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 /core/s2smanager.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 'core/s2smanager.lua')
-rw-r--r-- | core/s2smanager.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua index 5fe3a375..ece90e8f 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -87,7 +87,7 @@ function mark_connected(session) local from, to = session.from_host, session.to_host; - session.log("info", session.direction.." s2s connection "..from.."->"..to.." complete"); + session.log("info", "%s s2s connection %s->%s complete", session.direction, from, to); local event_data = { session = session }; if session.type == "s2sout" then @@ -105,7 +105,7 @@ function mark_connected(session) if session.direction == "outgoing" then if sendq then - session.log("debug", "sending "..#sendq.." queued stanzas across new outgoing connection to "..session.to_host); + session.log("debug", "sending %d queued stanzas across new outgoing connection to %s", #sendq, session.to_host); for i, data in ipairs(sendq) do send(data[1]); sendq[i] = nil; |