Skip to content

Commit

Permalink
Merge pull request #465 from CloudCannon/fix/node-perf
Browse files Browse the repository at this point in the history
Remove errant debug logging crushing the node performance
  • Loading branch information
bglw authored Oct 2, 2023
2 parents ca805fa + 7e091df commit 9740deb
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pagefind/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,6 @@ impl SearchState {

pub async fn fossick_one(&mut self, file: Fossicker) -> Result<FossickedData, ()> {
let result = file.fossick(&self.options).await;
self.options
.logger
.info(format!("Indexing file into: {:#?}", self.fossicked_pages));
if let Ok(result) = result.clone() {
let existing = self
.fossicked_pages
Expand All @@ -96,9 +93,6 @@ impl SearchState {
self.fossicked_pages.push(result);
}
}
self.options
.logger
.info(format!("Now: {:#?}", self.fossicked_pages));
result
}

Expand Down

0 comments on commit 9740deb

Please sign in to comment.