Software / code / prosody-modules
Comparison
mod_cloud_notify/mod_cloud_notify.lua @ 4221:e5998f53f4ff
mod_cloud_notify: make logging more clear
| author | tmolitor <thilo@eightysoft.de> |
|---|---|
| date | Mon, 19 Oct 2020 16:31:01 +0200 |
| parent | 4151:fa79d19d0fdd |
| child | 4273:8bf83e883593 |
comparison
equal
deleted
inserted
replaced
| 4220:0b1b7d671448 | 4221:e5998f53f4ff |
|---|---|
| 340 push_publish:up(); -- / pubsub | 340 push_publish:up(); -- / pubsub |
| 341 if push_info.options then | 341 if push_info.options then |
| 342 push_publish:tag("publish-options"):add_child(st.deserialize(push_info.options)); | 342 push_publish:tag("publish-options"):add_child(st.deserialize(push_info.options)); |
| 343 end | 343 end |
| 344 -- send out push | 344 -- send out push |
| 345 module:log("debug", "Sending%s push notification for %s@%s to %s (%s)", form_data["last-message-body"] and " important" or "", node, module.host, push_info.jid, tostring(push_info.node)); | 345 module:log("debug", "Sending %s push notification for %s@%s to %s (%s)", form_data["last-message-body"] and "important" or "unimportant", node, module.host, push_info.jid, tostring(push_info.node)); |
| 346 -- module:log("debug", "PUSH STANZA: %s", tostring(push_publish)); | 346 -- module:log("debug", "PUSH STANZA: %s", tostring(push_publish)); |
| 347 -- handle push errors for this node | 347 -- handle push errors for this node |
| 348 if push_errors[push_identifier] == nil then | 348 if push_errors[push_identifier] == nil then |
| 349 push_errors[push_identifier] = 0; | 349 push_errors[push_identifier] = 0; |
| 350 end | 350 end |