diff mod_storage_xmlarchive/mod_storage_xmlarchive.lua @ 2938:f000ba14d531

mod_storage_xmlarchive: Add a debug message to try to track down why all indicies are read in some cases
author Kim Alvefur <zash@zash.se>
date Sun, 18 Mar 2018 22:39:42 +0100
parents cd5e6534b813
children 26a549513f02
line wrap: on
line diff
--- 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