aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_c2s.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-07-23 18:28:14 +0100
committerMatthew Wild <mwild1@gmail.com>2012-07-23 18:28:14 +0100
commitfc975c9d5fb025d2c5306872fcd818c632bec15d (patch)
tree544ac88fbd33535fdc237a4bff17b7e09971d16c /plugins/mod_c2s.lua
parentdb03d95c4ce326b577a649278489a812ceb4fc45 (diff)
downloadprosody-fc975c9d5fb025d2c5306872fcd818c632bec15d.tar.gz
prosody-fc975c9d5fb025d2c5306872fcd818c632bec15d.zip
mod_c2s, mod_s2s: Lower 'Disconnecting X' log messages from 'info' to 'debug'
Diffstat (limited to 'plugins/mod_c2s.lua')
-rw-r--r--plugins/mod_c2s.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/mod_c2s.lua b/plugins/mod_c2s.lua
index 6d8356de..1f62b4d4 100644
--- a/plugins/mod_c2s.lua
+++ b/plugins/mod_c2s.lua
@@ -124,7 +124,7 @@ local function session_close(session, reason)
end
if reason then -- nil == no err, initiated by us, false == initiated by client
if type(reason) == "string" then -- assume stream error
- log("info", "Disconnecting client, <stream:error> is: %s", reason);
+ log("debug", "Disconnecting client, <stream:error> is: %s", reason);
session.send(st.stanza("stream:error"):tag(reason, {xmlns = 'urn:ietf:params:xml:ns:xmpp-streams' }));
elseif type(reason) == "table" then
if reason.condition then
@@ -135,10 +135,10 @@ local function session_close(session, reason)
if reason.extra then
stanza:add_child(reason.extra);
end
- log("info", "Disconnecting client, <stream:error> is: %s", tostring(stanza));
+ log("debug", "Disconnecting client, <stream:error> is: %s", tostring(stanza));
session.send(stanza);
elseif reason.name then -- a stanza
- log("info", "Disconnecting client, <stream:error> is: %s", tostring(reason));
+ log("debug", "Disconnecting client, <stream:error> is: %s", tostring(reason));
session.send(reason);
end
end