diff options
author | Kim Alvefur <zash@zash.se> | 2021-12-17 16:29:17 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-12-17 16:29:17 +0100 |
commit | 4cde54475b8b9d2b6a2ccbec8ffa5b142e746e57 (patch) | |
tree | 3b2d95c1d7b087df317e11b72844751660430b3b /plugins | |
parent | 2e47306cb6f1391842ac7790178605b703ee110a (diff) | |
download | prosody-4cde54475b8b9d2b6a2ccbec8ffa5b142e746e57.tar.gz prosody-4cde54475b8b9d2b6a2ccbec8ffa5b142e746e57.zip |
mod_smacks: Split log messages for when an old session exists in storage
Non-existent did not seem entirely accurate for this case
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_smacks.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_smacks.lua b/plugins/mod_smacks.lua index c776b35a..c750485f 100644 --- a/plugins/mod_smacks.lua +++ b/plugins/mod_smacks.lua @@ -497,14 +497,15 @@ function handle_resume(session, stanza, xmlns_sm) local id = stanza.attr.previd; local original_session = session_registry[jid.join(session.username, session.host, id)]; if not original_session then - session.log("debug", "Tried to resume non-existent session with id %s", id); local old_session = old_session_registry:get(session.username, id); if old_session then + session.log("debug", "Tried to resume old expired session with id %s", id); session.send(st.stanza("failed", { xmlns = xmlns_sm, h = format_h(old_session.h) }) :tag("item-not-found", { xmlns = xmlns_errors }) ); old_session_registry:set(session.username, id, nil); else + session.log("debug", "Tried to resume non-existent session with id %s", id); session.send(st.stanza("failed", { xmlns = xmlns_sm }) :tag("item-not-found", { xmlns = xmlns_errors }) ); |