Software /
code /
prosody-modules
Changeset
3755:bb18a1f5e9d7
mod_storage_xmlarchive: Log error writing XML since datamanager doesn't
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 21 Nov 2019 16:35:31 +0100 |
parents | 3754:d77a61d81555 |
children | 3756:ba4f45b8678f |
files | mod_storage_xmlarchive/mod_storage_xmlarchive.lua |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_storage_xmlarchive/mod_storage_xmlarchive.lua Sun Aug 25 20:59:05 2019 +0200 +++ b/mod_storage_xmlarchive/mod_storage_xmlarchive.lua Thu Nov 21 16:35:31 2019 +0100 @@ -36,6 +36,9 @@ local day = dt.date(when); local ok, err = dm.append_raw(username.."@"..day, self.host, self.store, "xml", data); if not ok then + -- append_raw, unlike list_append, does not log anything on failure atm, so we do so here + module:log("error", "Unable to write to %s storage ('%s') for user: %s@%s", + self.store, err, username, module.host) return nil, err; end