# HG changeset patch # User Kim Alvefur # Date 1549549563 -3600 # Node ID d73ed7975d82beb509ab038750d07e322f01e7fa # Parent b54e98d5c4a1db0fa5dbf5c0a271ed05e8100430 mod_storage_xmlarchive: Add some debug logging diff -r b54e98d5c4a1 -r d73ed7975d82 mod_storage_xmlarchive/mod_storage_xmlarchive.lua --- a/mod_storage_xmlarchive/mod_storage_xmlarchive.lua Sun Feb 03 21:36:31 2019 +0100 +++ b/mod_storage_xmlarchive/mod_storage_xmlarchive.lua Thu Feb 07 15:26:03 2019 +0100 @@ -66,6 +66,7 @@ local items = dm.list_load(username .. "@" .. dates[d], self.host, self.store) or empty; for i = 1, #items do if items[i].id == id then + module:log("debug", "Found item!"); return d, i, items; end end @@ -73,9 +74,11 @@ return; -- Assuming no duplicates end elseif date and date < dates[d] then + module:log("debug", "Skipping remaining dates after %s", date); return; -- List is assumed to be sorted end end + module:log("debug", "Item not found"); end function archive:find(username, query)