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...`
pull/12107/head jitsi-meet_7728
damencho 2 years ago committed by Дамян Минков
parent 882d343e8b
commit 6fe353cfa4
  1. 2
      resources/prosody-plugins/mod_av_moderation_component.lua
  2. 4
      resources/prosody-plugins/mod_conference_duration_component.lua
  3. 4
      resources/prosody-plugins/mod_speakerstats_component.lua

@ -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…
Cancel
Save