comparison mod_proxy65/mod_proxy65.lua @ 98:a54cc7bca826

mod_proxy65: correct log level, be more descriptive
author Thilo Cestonaro <thilo@cestona.ro>
date Wed, 25 Nov 2009 21:36:21 +0100
parents e704834c5613
children
comparison
equal deleted inserted replaced
97:e172f02726d9 98:a54cc7bca826
244 elseif stanza.name == "iq" and type == "set" then 244 elseif stanza.name == "iq" and type == "set" then
245 local reply, from, to, sid = set_activation(stanza); 245 local reply, from, to, sid = set_activation(stanza);
246 if reply ~= nil and from ~= nil and to ~= nil and sid ~= nil then 246 if reply ~= nil and from ~= nil and to ~= nil and sid ~= nil then
247 local sha = sha1(sid .. from .. to, true); 247 local sha = sha1(sid .. from .. to, true);
248 if transfers[sha] == nil then 248 if transfers[sha] == nil then
249 module:log("error", "transfers[sha]: nil"); 249 module:log("warn", "Recieved request to activate transfer with no participants");
250 module:log("debug", "The sha1 of the transfer which should be activated was: %s", sha);
250 elseif(transfers[sha] ~= nil and transfers[sha].initiator ~= nil and transfers[sha].target ~= nil) then 251 elseif(transfers[sha] ~= nil and transfers[sha].initiator ~= nil and transfers[sha].target ~= nil) then
251 origin.send(reply); 252 origin.send(reply);
252 transfers[sha].activated = true; 253 transfers[sha].activated = true;
253 end 254 end
254 else 255 else