Software /
code /
prosody
Diff
core/hostmanager.lua @ 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 |
parent | 8251:cb2d86f4b511 |
child | 8561:7b9ffddc4276 |
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";