diff options
author | Matthew Wild <mwild1@gmail.com> | 2008-11-20 03:00:43 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2008-11-20 03:00:43 +0000 |
commit | 5efcee9d4d5fdf372fcdf4b580ce338889ff1339 (patch) | |
tree | 654e64e54271396a70ae6009f91435afaa1ed64d /core/s2smanager.lua | |
parent | d8a04fa9e0b5b60fcbda35c40adb8f2b18b24043 (diff) | |
download | prosody-5efcee9d4d5fdf372fcdf4b580ce338889ff1339.tar.gz prosody-5efcee9d4d5fdf372fcdf4b580ce338889ff1339.zip |
Remove or comment useless prints, or change them to log()
Diffstat (limited to 'core/s2smanager.lua')
-rw-r--r-- | core/s2smanager.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua index cb650cfc..6d8f3a00 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -141,20 +141,20 @@ function streamopened(session, attr) session.version = tonumber(attr.version) or 0; if session.version >= 1.0 and not (attr.to and attr.from) then - print("to: "..tostring(attr.to).." from: "..tostring(attr.from)); + --print("to: "..tostring(attr.to).." from: "..tostring(attr.from)); log("warn", (session.to_host or "(unknown)").." failed to specify 'to' or 'from' hostname as per RFC"); end if session.direction == "incoming" then -- Send a reply stream header - for k,v in pairs(attr) do print("", tostring(k), ":::", tostring(v)); end + --for k,v in pairs(attr) do print("", tostring(k), ":::", tostring(v)); end session.to_host = attr.to; session.from_host = attr.from; session.streamid = uuid_gen(); - print(session, session.from_host, "incoming s2s stream opened"); + (session.log or log)("debug", "incoming s2s received <stream:stream>"); send("<?xml version='1.0'?>"); send(stanza("stream:stream", { xmlns='jabber:server', ["xmlns:db"]='jabber:server:dialback', ["xmlns:stream"]='http://etherx.jabber.org/streams', id=session.streamid, from=session.to_host }):top_tag()); if session.to_host and not hosts[session.to_host] then |