use console.debug

This commit is contained in:
Nate Sesti 2024-08-08 16:20:52 -04:00
parent 85b3d211a6
commit faef4a6ed1
2 changed files with 2 additions and 2 deletions

View file

@ -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<IndexingProgressUpdate> {

View file

@ -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),