use console.debug
This commit is contained in:
parent
85b3d211a6
commit
faef4a6ed1
2 changed files with 2 additions and 2 deletions
|
|
@ -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> {
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue