aboutsummaryrefslogtreecommitdiffstats
path: root/core/s2smanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-10-06 11:02:33 +0100
committerMatthew Wild <mwild1@gmail.com>2009-10-06 11:02:33 +0100
commitd1c758cdfc27b9a57fdd79ff28dd68c9a435b568 (patch)
tree8420aa90dd7b1ffdc02d3594b24fe26f403f0c07 /core/s2smanager.lua
parent7e1eb156673ece893824829dec7ca3c2d933a434 (diff)
downloadprosody-d1c758cdfc27b9a57fdd79ff28dd68c9a435b568.tar.gz
prosody-d1c758cdfc27b9a57fdd79ff28dd68c9a435b568.zip
s2smanager: Improve log message on missing to/from in stream header
Diffstat (limited to 'core/s2smanager.lua')
-rw-r--r--core/s2smanager.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index cdfadba0..6052d652 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -344,7 +344,9 @@ function streamopened(session, attr)
end
if session.version >= 1.0 and not (attr.to and attr.from) then
- log("warn", (session.to_host or "(unknown)").." failed to specify 'to' or 'from' hostname as per RFC");
+
+ (session.log or log)("warn", "Remote of stream "..(session.from_host or "(unknown)").."->"..(session.to_host or "(unknown)")
+ .." failed to specify to (%s) and/or from (%s) hostname as per RFC", tostring(attr.to), tostring(attr.from));
end
if session.direction == "incoming" then