From 9c1222b34e89f8401a9749cf59c3e2a9bb07dd57 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 19 Feb 2010 03:30:27 +0000 Subject: s2smanager: Use s2smanager log() if session doesn't have a logger (thanks Flo) --- core/s2smanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/s2smanager.lua b/core/s2smanager.lua index 602d6837..875a6bdc 100644 --- a/core/s2smanager.lua +++ b/core/s2smanager.lua @@ -301,7 +301,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; -- cgit v1.2.3