From d1c758cdfc27b9a57fdd79ff28dd68c9a435b568 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Tue, 6 Oct 2009 11:02:33 +0100 Subject: s2smanager: Improve log message on missing to/from in stream header --- core/s2smanager.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'core/s2smanager.lua') 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 -- cgit v1.2.3