From faef4a6ed19f5f40cd6956cf13a6c99dccbc5a57 Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Thu, 8 Aug 2024 16:20:52 -0400 Subject: [PATCH] use console.debug --- core/indexing/CodebaseIndexer.ts | 2 +- core/indexing/chunk/chunk.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/indexing/CodebaseIndexer.ts b/core/indexing/CodebaseIndexer.ts index a92d7fa2f..ea317cc60 100644 --- a/core/indexing/CodebaseIndexer.ts +++ b/core/indexing/CodebaseIndexer.ts @@ -217,7 +217,7 @@ export class CodebaseIndexer { const seconds = Math.round(timeTaken / 1000); const progressPercentage = (progress * 100).toFixed(1); const filesPerSec = (completedFileCount / seconds).toFixed(2); - console.log(`Indexing: ${progressPercentage}% complete, elapsed time: ${seconds}s, ${filesPerSec} file/sec`); + console.debug(`Indexing: ${progressPercentage}% complete, elapsed time: ${seconds}s, ${filesPerSec} file/sec`); } private async* yieldUpdateAndPause(): AsyncGenerator { diff --git a/core/indexing/chunk/chunk.ts b/core/indexing/chunk/chunk.ts index 2bdf446a8..0cfd72fae 100644 --- a/core/indexing/chunk/chunk.ts +++ b/core/indexing/chunk/chunk.ts @@ -52,7 +52,7 @@ export async function* chunkDocument({ )) { chunkPromises.push(new Promise(async (resolve) => { if (await countTokensAsync(chunkWithoutId.content) > maxChunkSize) { - console.warn( + console.debug( `Chunk with more than ${maxChunkSize} tokens constructed: `, filepath, countTokens(chunkWithoutId.content),