# HG changeset patch # User Kim Alvefur # Date 1431909814 -7200 # Node ID 940a4ab75cec29027b55e59655118852a151e76f # Parent b3f048af2dfe47a56afa7ca0f66d454b6443d488 mod_storage_xmlarchive: This module only supports storage of stanzas, log a warning about attempts to do otherwise diff -r b3f048af2dfe -r 940a4ab75cec mod_storage_xmlarchive/mod_storage_xmlarchive.lua --- a/mod_storage_xmlarchive/mod_storage_xmlarchive.lua Mon May 18 02:33:43 2015 +0200 +++ b/mod_storage_xmlarchive/mod_storage_xmlarchive.lua Mon May 18 02:43:34 2015 +0200 @@ -24,6 +24,7 @@ function archive:append(username, _, when, with, data) if getmetatable(data) ~= st.stanza_mt then + module:log("error", "Attempt to store non-stanza object, traceback: %s", debug.traceback()); return nil, "unsupported-datatype"; end username = username or "@";