Comparison

plugins/mod_mam/mod_mam.lua @ 8140:2bda04a7b4d4

mod_mam: Format timestamps in log message
author Kim Alvefur <zash@zash.se>
date Sun, 07 May 2017 20:23:29 +0200
parent 8137:484ea6201c6c
child 8149:1dc6efcc420a
comparison
equal deleted inserted replaced
8139:4119cca64064 8140:2bda04a7b4d4
121 end 121 end
122 qstart, qend = vstart, vend; 122 qstart, qend = vstart, vend;
123 end 123 end
124 124
125 module:log("debug", "Archive query, id %s with %s from %s until %s)", 125 module:log("debug", "Archive query, id %s with %s from %s until %s)",
126 tostring(qid), qwith or "anyone", qstart or "the dawn of time", qend or "now"); 126 tostring(qid), qwith or "anyone",
127 qstart and timestamp(qstart) or "the dawn of time",
128 qend and timestamp(qend) or "now");
127 129
128 -- RSM stuff 130 -- RSM stuff
129 local qset = rsm.get(query); 131 local qset = rsm.get(query);
130 local qmax = m_min(qset and qset.max or default_max_items, max_max_items); 132 local qmax = m_min(qset and qset.max or default_max_items, max_max_items);
131 local reverse = qset and qset.before or false; 133 local reverse = qset and qset.before or false;