Comparison

plugins/mod_mam/mod_mam.lua @ 10071:b36e2631203d

mod_mam: Make log message more compact
author Kim Alvefur <zash@zash.se>
date Thu, 11 Jul 2019 23:22:59 +0200
parent 10030:98ef41a60fc3
child 10072:128142990b2b
comparison
equal deleted inserted replaced
10070:d7cae7187943 10071:b36e2631203d
116 return true; 116 return true;
117 end 117 end
118 qstart, qend = vstart, vend; 118 qstart, qend = vstart, vend;
119 end 119 end
120 120
121 module:log("debug", "Archive query, id %s with %s from %s until %s", 121 module:log("debug", "Archive query id=%s with=%s when=%s...%s",
122 tostring(qid), qwith or "anyone", 122 qid or "-",
123 qstart and timestamp(qstart) or "the dawn of time", 123 qwith or "*",
124 qend and timestamp(qend) or "now"); 124 qstart and timestamp(qstart) or "",
125 qend and timestamp(qend) or "");
125 126
126 -- RSM stuff 127 -- RSM stuff
127 local qset = rsm.get(query); 128 local qset = rsm.get(query);
128 local qmax = m_min(qset and qset.max or default_max_items, max_max_items); 129 local qmax = m_min(qset and qset.max or default_max_items, max_max_items);
129 local reverse = qset and qset.before or false; 130 local reverse = qset and qset.before or false;