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:
parent
882d343e8b
commit
6fe353cfa4
|
@ -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
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue