fix: more log cleanup

This commit is contained in:
2022-09-22 05:42:39 +02:00
parent 0e842026e6
commit 434325a168
2 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ function handle_alias(event)
if ((event.stanza.attr.type ~= "error") and (event.stanza.attr.type == "normal")) then
local alias = event.stanza.attr.to;
local forward_stanza = event.stanza;
module:log("info", "alias handling - checking %s", alias);
-- module:log("info", "alias handling - checking %s", alias);
local tonode, tohost = jid_split(alias);
if tonode ~= nil then
if starts_with(tonode, "broadcast-") then
+5 -4
View File
@@ -338,10 +338,11 @@ local function postFCM(_userName, _fcmId, _source, _body, _type, _senderName, _g
}
}
module:log("info", "sending notification to %s for token %s - from: %s - msgid: %s - body: %s", _userName.."@"..domainname, _fcmId, _source, _msgid, _body);
-- module:log("info", "sending notification to %s for token %s - from: %s - msgid: %s - body: %s", _userName.."@"..domainname, _fcmId, _source, _msgid, _body);
module:log("info", "sending notification to %s for token %s - from: %s - msgid: %s", _userName.."@"..domainname, _fcmId, _source, _msgid);
-- ssl does not seem to work with net.http, so we proxy it
--http.request("https://fcm.googleapis.com/fcm/send", httpRequestOptions, postCallback)
module:log("info", "sendingHTTP request to %s", fcmAPIURL);
-- module:log("info", "sendingHTTP request to %s", fcmAPIURL);
http.request(fcmAPIURL, httpRequestOptions, getPostCallback(_fcmId, _userName))
end
@@ -417,7 +418,7 @@ local function postFCMIOS(_userName, _fcmId, _source, _body, _type, _senderName,
if (_jitsiRoom ~= nil) then
nJitsiRoom = _jitsiRoom;
end
module:log("info", "sending IOS sound %s", _enableSoundOpt);
-- module:log("info", "sending IOS sound %s", _enableSoundOpt);
local fcmRequest = {
to = _fcmId,
@@ -796,7 +797,7 @@ local function message_handler(event, fromLocal)
stanza.attr.from, stanza.attr.to, tostring(fromLocal), type, content, isSentCarbonMessage, tostring(isMUC), tostring(doNotify));
if (not isMUC)
then
module:log("info", "537-doNotify not isMUC: %s -> %s fl=%s, type=%s, content=%s, carbon=%s, isMUC=%s => doNotify=%s",
module:log("debug", "537-doNotify not isMUC: %s -> %s fl=%s, type=%s, content=%s, carbon=%s, isMUC=%s => doNotify=%s",
stanza.attr.from, stanza.attr.to, tostring(fromLocal), type, content, isSentCarbonMessage, tostring(isMUC), tostring(doNotify));
--if (fromLocal)
--then