Software /
code /
prosody
Changeset
5800:3a48acbcb7f3
mod_s2s: Captitalize log messages that begin with a stream direction
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 14 Aug 2013 14:53:50 +0200 |
parents | 5799:4a7e90b4c97d |
children | 5801:224644752bf4 |
files | plugins/mod_s2s/mod_s2s.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_s2s/mod_s2s.lua Wed Aug 14 14:44:56 2013 +0200 +++ b/plugins/mod_s2s/mod_s2s.lua Wed Aug 14 14:53:50 2013 +0200 @@ -158,7 +158,7 @@ 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 @@ 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;