Changeset

8559:d5d746e4c453

hostmanager: Add a logging close method in case something tries to close the origin of local-originated stanzas (see #1084)
author Kim Alvefur <zash@zash.se>
date Sat, 24 Feb 2018 19:40:18 +0100
parents 8538:3eb4cafb3b64
children 8560:489998717387
files core/hostmanager.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/core/hostmanager.lua	Wed Feb 21 21:02:16 2018 +0100
+++ b/core/hostmanager.lua	Sat Feb 24 19:40:18 2018 +0100
@@ -92,6 +92,9 @@
 		send = host_send;
 		modules = {};
 	};
+	function host_session:close(reason)
+		log("debug", "Attempt to close host session %s with reason: %s", self.host, reason);
+	end
 	setmetatable(host_session, host_mt);
 	if not host_config.component_module then -- host
 		host_session.type = "local";