Remove the debug logs from previous commit
This commit is contained in:
@@ -729,16 +729,12 @@ bool BiboumiComponent::handle_mam_request(const Stanza& stanza)
|
|||||||
if ((limit == -1 && start.empty() && end.empty())
|
if ((limit == -1 && start.empty() && end.empty())
|
||||||
|| limit > 100)
|
|| limit > 100)
|
||||||
limit = 101;
|
limit = 101;
|
||||||
log_debug("limit: ", limit);
|
|
||||||
auto lines = Database::get_muc_logs(from.bare(), iid.get_local(), iid.get_server(), limit, start, end);
|
auto lines = Database::get_muc_logs(from.bare(), iid.get_local(), iid.get_server(), limit, start, end);
|
||||||
bool complete = true;
|
bool complete = true;
|
||||||
if (lines.size() > 100)
|
if (lines.size() > 100)
|
||||||
{
|
{
|
||||||
log_debug("incomplete");
|
|
||||||
complete = false;
|
complete = false;
|
||||||
log_debug("size of lines before erase: ", lines.size());
|
|
||||||
lines.erase(lines.begin(), std::prev(lines.end(), 100));
|
lines.erase(lines.begin(), std::prev(lines.end(), 100));
|
||||||
log_debug("size of lines after erase: ", lines.size());
|
|
||||||
}
|
}
|
||||||
for (const Database::MucLogLine& line: lines)
|
for (const Database::MucLogLine& line: lines)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user