Commit 369da19d authored by louiz’'s avatar louiz’

Remove the debug logs from previous commit

parent 58fd6891
......@@ -729,16 +729,12 @@ bool BiboumiComponent::handle_mam_request(const Stanza& stanza)
if ((limit == -1 && start.empty() && end.empty())
|| limit > 100)
limit = 101;
log_debug("limit: ", limit);
auto lines = Database::get_muc_logs(from.bare(), iid.get_local(), iid.get_server(), limit, start, end);
bool complete = true;
if (lines.size() > 100)
{
log_debug("incomplete");
complete = false;
log_debug("size of lines before erase: ", lines.size());
lines.erase(lines.begin(), std::prev(lines.end(), 100));
log_debug("size of lines after erase: ", lines.size());
}
for (const Database::MucLogLine& line: lines)
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment