Software /
code /
prosody-modules
Comparison
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 |
parent | 2917:cd5e6534b813 |
child | 3435:26a549513f02 |
comparison
equal
deleted
inserted
replaced
2937:e672d1050529 | 2938:f000ba14d531 |
---|---|
58 end | 58 end |
59 return id; | 59 return id; |
60 end | 60 end |
61 | 61 |
62 function archive:_get_idx(username, id, dates) | 62 function archive:_get_idx(username, id, dates) |
63 module:log("debug", "Looking for item with id %q", id); | |
63 dates = dates or self:dates(username) or empty; | 64 dates = dates or self:dates(username) or empty; |
64 local date = id:sub(1, 10); | 65 local date = id:sub(1, 10); |
65 for d = 1, #dates do | 66 for d = 1, #dates do |
66 if date == dates[d] then | 67 if date == dates[d] then |
67 module:log("debug", "Loading index for %s", dates[d]); | 68 module:log("debug", "Loading index for %s", dates[d]); |