2 Commits

Author SHA1 Message Date
teernisse
8bd68e02bd chore(beads): update issue tracking state
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 17:01:36 -05:00
teernisse
6aaf931c9b fix(embedding): guard is_multiple_of() progress logs against zero
is_multiple_of(N) returns true for 0, which caused debug/info
progress messages to fire at doc_num=0 (the start of every page)
rather than only at the intended 50/100 milestones. Add != 0
check to both the debug (every 50) and info (every 100) log sites.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 17:01:33 -05:00
3 changed files with 25 additions and 25 deletions

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
bd-26km
bd-23xb

View File

@@ -161,7 +161,7 @@ async fn embed_page(
continue;
}
if page_normal_docs.is_multiple_of(50) {
if page_normal_docs != 0 && page_normal_docs.is_multiple_of(50) {
debug!(
doc_id = doc.document_id,
doc_num = page_normal_docs,
@@ -169,7 +169,7 @@ async fn embed_page(
"Chunking document"
);
}
if page_normal_docs.is_multiple_of(100) {
if page_normal_docs != 0 && page_normal_docs.is_multiple_of(100) {
info!(
doc_id = doc.document_id,
content_bytes = doc.content_text.len(),