fix(visitors): Move some logs to debug.

This commit is contained in:
damencho
2023-06-07 09:07:39 -05:00
committed by Дамян Минков
parent 66a9c4df25
commit f3dbf34842
2 changed files with 3 additions and 3 deletions

View File

@@ -98,7 +98,7 @@ module:hook('muc-occupant-pre-join', function (event)
module:log('error', 'Error enqueuing occupant event for: %s', occupant.nick);
return true;
end
module:log('info', 'Occupant pushed to prejoin queue %s', occupant.nick);
module:log('debug', 'Occupant pushed to prejoin queue %s', occupant.nick);
-- stop processing
return true;
@@ -115,7 +115,7 @@ function handle_jicofo_unlock(event)
-- and now let's handle all pre_join_queue events
for _, ev in room.pre_join_queue:items() do
module:log('info', 'Occupant processed from queue %s', ev.occupant.nick);
module:log('debug', 'Occupant processed from queue %s', ev.occupant.nick);
room:handle_normal_presence(ev.origin, ev.stanza);
end
room.pre_join_queue = nil;

View File

@@ -7,7 +7,7 @@ module:hook("route/remote", function (event)
if not whitelist:contains(event.to_host) then
-- make sure we do not send error replies for errors
if event.stanza.attr.type == 'error' then
module:log('info', 'Not whitelisted destination domain for an error: %s', event.stanza);
module:log('debug', 'Not whitelisted destination domain for an error: %s', event.stanza);
return true;
end