TT#96550 mod_sipwise_redis_*: add some more debug info at add_host()

Change-Id: I266e223c24f6c4a9f195f158cb0c096bf417c4e8
(cherry picked from commit 4b1b19380e)
mr7.5.7
Victor Seva 6 years ago
parent 0abac348c9
commit 441852a989
No known key found for this signature in database
GPG Key ID: B1589889727198E0

@ -108,9 +108,12 @@ function module.load()
end
function module.add_host(module)
if module:get_host_type() == "component" then
local host = module:get_host();
local _type = module:get_host_type();
if _type == "component" then
module:hook("muc-room-created", muc_created, 200);
module:hook("muc-room-destroyed", muc_destroyed, 200);
end
module:log("debug", "hooked at %s", module:get_host());
module:log("debug", "hooked at %s as %s", host, _type);
end

@ -130,11 +130,12 @@ end
function module.add_host(module)
local host = module:get_host();
local _type = module:get_host_type();
if module:get_host_type() ~= "component" then
if _type ~= "component" then
module:hook("resource-bind", resource_bind, 200);
module:hook("resource-unbind", resource_unbind, 200);
clean_local_sessions(host);
module:log("debug", "hooked at %s", host);
end
module:log("debug", "hooked at %s as %s", host, _type);
end

Loading…
Cancel
Save