mod_storage_xmlarchive: Add a debug message to try to track down why all indicies are read in some cases
authorKim Alvefur <zash@zash.se>
Sun, 18 Mar 2018 22:39:42 +0100
changeset 2942 f000ba14d531
parent 2941 e672d1050529
child 2943 280305c043b0
child 2960 d0ca211e1b0e
mod_storage_xmlarchive: Add a debug message to try to track down why all indicies are read in some cases
mod_storage_xmlarchive/mod_storage_xmlarchive.lua
--- a/mod_storage_xmlarchive/mod_storage_xmlarchive.lua	Sat Mar 17 12:58:37 2018 +0000
+++ b/mod_storage_xmlarchive/mod_storage_xmlarchive.lua	Sun Mar 18 22:39:42 2018 +0100
@@ -60,6 +60,7 @@
 end
 
 function archive:_get_idx(username, id, dates)
+	module:log("debug", "Looking for item with id %q", id);
 	dates = dates or self:dates(username) or empty;
 	local date = id:sub(1, 10);
 	for d = 1, #dates do