# HG changeset patch # User Kim Alvefur # Date 1519497618 -3600 # Node ID d5d746e4c453d442ba596fa2c3d4fc4f7ef80669 # Parent 3eb4cafb3b645289133f05d22d494a4be405a5ae hostmanager: Add a logging close method in case something tries to close the origin of local-originated stanzas (see #1084) diff -r 3eb4cafb3b64 -r d5d746e4c453 core/hostmanager.lua --- 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";