Diff

plugins/mod_c2s.lua @ 9490:6e4fbd12c11c

mod_c2s: Fix fallback for missing session logger
author Kim Alvefur <zash@zash.se>
date Fri, 12 Oct 2018 02:16:24 +0200
parent 8847:74526c425dec
child 9739:a74d78f79b23
child 10013:62d8689beafb
line wrap: on
line diff
--- a/plugins/mod_c2s.lua	Fri Oct 12 00:52:18 2018 +0200
+++ b/plugins/mod_c2s.lua	Fri Oct 12 02:16:24 2018 +0200
@@ -71,7 +71,7 @@
 	end
 	session.version = tonumber(attr.version) or 0;
 	session.streamid = uuid_generate();
-	(session.log or session)("debug", "Client sent opening <stream:stream> to %s", session.host);
+	(session.log or log)("debug", "Client sent opening <stream:stream> to %s", session.host);
 
 	if not hosts[session.host] or not hosts[session.host].modules.c2s then
 		-- We don't serve this host...