fix: Fixes lua log lines.

When using directly log( the log lines come from `general` not from the module itself.
`Aug 29 19:38:08 general	info	Starting speakerstats for conference...`
This commit is contained in:
damencho 2022-08-30 10:32:36 -05:00 committed by Дамян Минков
parent 882d343e8b
commit 6fe353cfa4
3 changed files with 5 additions and 5 deletions

View File

@ -8,7 +8,7 @@ local st = require 'util.stanza';
local muc_component_host = module:get_option_string('muc_component');
if muc_component_host == nil then
log('error', 'No muc_component specified. No muc to operate on!');
module:log('error', 'No muc_component specified. No muc to operate on!');
return;
end

View File

@ -13,11 +13,11 @@ end
local muc_component_host = module:get_option_string("muc_component");
if muc_component_host == nil then
log("error", "No muc_component specified. No muc to operate on!");
module:log("error", "No muc_component specified. No muc to operate on!");
return;
end
log("info", "Starting conference duration timer for %s", muc_component_host);
module:log("info", "Starting conference duration timer for %s", muc_component_host);
function occupant_joined(event)
local room = event.room;

View File

@ -20,12 +20,12 @@ local muc_component_host = module:get_option_string("muc_component");
local muc_domain_base = module:get_option_string("muc_mapper_domain_base");
if muc_component_host == nil or muc_domain_base == nil then
log("error", "No muc_component specified. No muc to operate on!");
module:log("error", "No muc_component specified. No muc to operate on!");
return;
end
local breakout_room_component_host = "breakout." .. muc_domain_base;
log("info", "Starting speakerstats for %s", muc_component_host);
module:log("info", "Starting speakerstats for %s", muc_component_host);
local main_muc_service;