aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-02-19 03:30:27 +0000
committerMatthew Wild <mwild1@gmail.com>2010-02-19 03:30:27 +0000
commit87ff54c75266ffa37f716d1c7a542e956bbe54b3 (patch)
treee7dc81285dba9ab7169e507ba30c8f60d2545322
parenteda3ad332699393bed8331ebddc3c57e36a31fcb (diff)
downloadprosody-87ff54c75266ffa37f716d1c7a542e956bbe54b3.tar.gz
prosody-87ff54c75266ffa37f716d1c7a542e956bbe54b3.zip
s2smanager: Use s2smanager log() if session doesn't have a logger (thanks Flo)
-rw-r--r--core/s2smanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index 10c27746..aabfddd6 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -303,7 +303,7 @@ function try_connect(host_session, connect_host, connect_port)
end
function make_connect(host_session, connect_host, connect_port)
- host_session.log("info", "Beginning new connection attempt to %s (%s:%d)", host_session.to_host, connect_host, connect_port);
+ (host_session.log or log)("info", "Beginning new connection attempt to %s (%s:%d)", host_session.to_host, connect_host, connect_port);
-- Ok, we're going to try to connect
local from_host, to_host = host_session.from_host, host_session.to_host;