Remove debug logs while iterating through the facet levels

This commit is contained in:
Kerollmops 2021-04-07 14:21:47 +02:00
parent 51767725b2
commit 2aeef09316
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -3,7 +3,6 @@ use std::ops::Bound::{self, Included, Excluded, Unbounded};
use either::Either::{self, Left, Right}; use either::Either::{self, Left, Right};
use heed::types::{DecodeIgnore, ByteSlice}; use heed::types::{DecodeIgnore, ByteSlice};
use heed::{Database, RoRange, RoRevRange, LazyDecode}; use heed::{Database, RoRange, RoRevRange, LazyDecode};
use log::debug;
use roaring::RoaringBitmap; use roaring::RoaringBitmap;
use crate::heed_codec::CboRoaringBitmapCodec; use crate::heed_codec::CboRoaringBitmapCodec;
@ -223,7 +222,6 @@ impl<'t> Iterator for FacetIter<'t> {
} }
if level == 0 { if level == 0 {
debug!("found {:?} at {:?}", docids, left);
return Some(Ok((left, docids))); return Some(Ok((left, docids)));
} }
@ -233,10 +231,6 @@ impl<'t> Iterator for FacetIter<'t> {
let left = Included(left); let left = Included(left);
let right = Included(right); let right = Included(right);
debug!("calling with {:?} to {:?} (level {}) to find {:?}",
left, right, level - 1, docids,
);
let result = if is_ascending { let result = if is_ascending {
FacetRange::new(rtxn, db, fid, level - 1, left, right).map(Left) FacetRange::new(rtxn, db, fid, level - 1, left, right).map(Left)
} else { } else {