diff options
author | Kim Alvefur <zash@zash.se> | 2013-08-14 14:53:50 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2013-08-14 14:53:50 +0200 |
commit | ca6fcc0905b0f8af35b89488a3468953e73ac85d (patch) | |
tree | 49c1c3a7e2cd12e89d57d224f38c766bac3eca70 /plugins/mod_s2s | |
parent | f836fd60495324554d74d5f919dd4e94f8b650bb (diff) | |
download | prosody-ca6fcc0905b0f8af35b89488a3468953e73ac85d.tar.gz prosody-ca6fcc0905b0f8af35b89488a3468953e73ac85d.zip |
mod_s2s: Captitalize log messages that begin with a stream direction
Diffstat (limited to 'plugins/mod_s2s')
-rw-r--r-- | plugins/mod_s2s/mod_s2s.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_s2s/mod_s2s.lua b/plugins/mod_s2s/mod_s2s.lua index d64a02ac..331e99f1 100644 --- a/plugins/mod_s2s/mod_s2s.lua +++ b/plugins/mod_s2s/mod_s2s.lua @@ -158,7 +158,7 @@ function mark_connected(session) local from, to = session.from_host, session.to_host; - session.log("info", "%s s2s connection %s->%s complete", session.direction, from, to); + session.log("info", "%s s2s connection %s->%s complete", session.direction:gsub("^.", string.upper), from, to); local event_data = { session = session }; if session.type == "s2sout" then @@ -491,7 +491,7 @@ local function session_close(session, reason, remote_reason) function session.sends2s() return false; end local reason = remote_reason or (reason and (reason.text or reason.condition)) or reason; - session.log("info", "%s s2s stream %s->%s closed: %s", session.direction, session.from_host or "(unknown host)", session.to_host or "(unknown host)", reason or "stream closed"); + session.log("info", "%s s2s stream %s->%s closed: %s", session.direction:gsub("^.", string.upper), session.from_host or "(unknown host)", session.to_host or "(unknown host)", reason or "stream closed"); -- Authenticated incoming stream may still be sending us stanzas, so wait for </stream:stream> from remote local conn = session.conn; |