Mercurial > prosody-hg
comparison plugins/mod_mam/mod_mam.lua @ 10523:86422db90e02 0.11
mod_mam: Log error when unable to store stanza (fix #1478)
Unclear what else to do here.
Caught by luacheck
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 23 Dec 2019 23:18:39 +0100 |
| parents | 906ea5e1ec75 |
| children | 7c29a6e652d2 |
comparison
equal
deleted
inserted
replaced
| 10522:b1ca849b8e3a | 10523:86422db90e02 |
|---|---|
| 303 local id = ok; | 303 local id = ok; |
| 304 clone_for_other_handlers:tag("stanza-id", { xmlns = xmlns_st_id, by = store_user.."@"..host, id = id }):up(); | 304 clone_for_other_handlers:tag("stanza-id", { xmlns = xmlns_st_id, by = store_user.."@"..host, id = id }):up(); |
| 305 event.stanza = clone_for_other_handlers; | 305 event.stanza = clone_for_other_handlers; |
| 306 schedule_cleanup(store_user); | 306 schedule_cleanup(store_user); |
| 307 module:fire_event("archive-message-added", { origin = origin, stanza = clone_for_storage, for_user = store_user, id = id }); | 307 module:fire_event("archive-message-added", { origin = origin, stanza = clone_for_storage, for_user = store_user, id = id }); |
| 308 else | |
| 309 log("error", "Could not archive stanza: %s", err); | |
| 308 end | 310 end |
| 309 else | 311 else |
| 310 log("debug", "Not archiving stanza: %s (prefs)", stanza:top_tag()); | 312 log("debug", "Not archiving stanza: %s (prefs)", stanza:top_tag()); |
| 311 end | 313 end |
| 312 end | 314 end |
