stop the log spam

This commit is contained in:
perf3ct 2025-03-18 22:20:17 +00:00
parent 8129f8f2b1
commit 1a8ce967d9
No known key found for this signature in database
GPG Key ID: 569C4EEC436F5232

View File

@ -322,12 +322,13 @@ async function processEmbeddings(queryEmbedding: Float32Array, embeddings: any[]
vectorDebugConfig
} = await import('./vector_utils.js');
// Enable debug logging temporarily for testing content-aware adaptation
// Store original debug settings but keep debug disabled
const originalDebugEnabled = vectorDebugConfig.enabled;
const originalLogLevel = vectorDebugConfig.logLevel;
vectorDebugConfig.enabled = true;
vectorDebugConfig.logLevel = 'debug';
vectorDebugConfig.recordStats = true;
// Keep debug disabled for normal operation
vectorDebugConfig.enabled = false;
vectorDebugConfig.recordStats = false;
const similarities = [];
@ -339,7 +340,7 @@ async function processEmbeddings(queryEmbedding: Float32Array, embeddings: any[]
let contentType = ContentType.GENERAL_TEXT;
if (e.mime) {
contentType = detectContentType(e.mime);
console.log(`Note ID: ${e.noteId}, Mime: ${e.mime}, Detected content type: ${contentType}`);
// Debug logging removed to avoid console spam
}
// Select performance profile based on embedding size and use case
@ -376,7 +377,6 @@ async function processEmbeddings(queryEmbedding: Float32Array, embeddings: any[]
// Restore original debug settings
vectorDebugConfig.enabled = originalDebugEnabled;
vectorDebugConfig.logLevel = originalLogLevel;
vectorDebugConfig.recordStats = false;
}
}