mirror of
https://github.com/bjc/prosody.git
synced 2025-04-01 20:27:39 +03:00
mod_bookmarks: Clarify log messages on failure to sync to modern PEP bookmarks
Previously the error messages said that it failed to "publish" to PEP, but sometimes a sync involves removing items, which can be confusing. The log was also the same for both legacy PEP and private XML bookmarks. Having different log messages makes it easier to debug the cause and location of any sync errors.
This commit is contained in:
parent
f8c85b7c1e
commit
cf3403f90c
1 changed files with 2 additions and 2 deletions
|
@ -314,7 +314,7 @@ local function on_publish_legacy_pep(event)
|
|||
|
||||
local ok, err = publish_to_pep(session.full_jid, bookmarks, true);
|
||||
if not ok then
|
||||
module:log("error", "Failed to publish to PEP bookmarks for %s@%s: %s", session.username, session.host, err);
|
||||
module:log("error", "Failed to sync legacy bookmarks to PEP for %s@%s: %s", session.username, session.host, err);
|
||||
session.send(st.error_reply(stanza, "cancel", "internal-server-error", "Failed to store bookmarks to PEP"));
|
||||
return true;
|
||||
end
|
||||
|
@ -340,7 +340,7 @@ local function on_publish_private_xml(event)
|
|||
|
||||
local ok, err = publish_to_pep(session.full_jid, bookmarks, true);
|
||||
if not ok then
|
||||
module:log("error", "Failed to publish to PEP bookmarks for %s@%s: %s", session.username, session.host, err);
|
||||
module:log("error", "Failed to sync private XML bookmarks to PEP for %s@%s: %s", session.username, session.host, err);
|
||||
session.send(st.error_reply(stanza, "cancel", "internal-server-error", "Failed to store bookmarks to PEP"));
|
||||
return true;
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue