移除多个文件中的调试日志输出,优化代码可读性和性能。

This commit is contained in:
duanfuxiang 2025-07-05 16:29:41 +08:00
parent a2fcb7c20f
commit 54a14dedd6
7 changed files with 3 additions and 9 deletions

View File

@ -79,7 +79,6 @@ const ChatHistoryView = ({
// filter conversations list
const filteredConversations = useMemo(() => {
console.log('filteredConversations', chatList)
let filtered = chatList
// Apply search filter

View File

@ -224,8 +224,6 @@ const InsightView = () => {
})
if (result.success) {
console.log('工作区洞察初始化完成:', result.result)
// 刷新洞察列表
await loadInsights()

View File

@ -68,7 +68,6 @@ export const getEmbeddingModel = (
}
const results = await embeddingManager.embedBatch(texts)
console.log('results', results)
return results.map(result => result.vec)
} catch (error) {
console.error('LocalProvider batch embedding error:', error)

View File

@ -30,7 +30,6 @@ export class InsightRepository {
const result = await this.db.query<SelectSourceInsight>(
`SELECT * FROM "${tableName}" ORDER BY created_at DESC`
)
console.log(result.rows)
return result.rows
}

View File

@ -156,7 +156,6 @@ export class VectorManager {
// 保存原始内容,不在此处调用 removeMarkdown
const rawContent = chunk.pageContent.replace(/\0/g, '')
if (!rawContent || rawContent.trim().length === 0) {
console.log("skipped chunk", chunk.pageContent)
return null
}
return {

View File

@ -83,7 +83,7 @@ async function loadModel(modelKey: string, useGpu: boolean = false) {
progress_callback: (progress: any) => {
try {
if (progress && typeof progress === 'object') {
console.log('Model loading progress:', progress);
// console.log('Model loading progress:', progress);
}
} catch (error) {
// 忽略进度回调错误,避免中断模型加载

View File

@ -414,7 +414,7 @@ export default class InfioPlugin extends Plugin {
if (result.success) {
new Notice('Dataview 查询成功!结果已在控制台输出');
console.log('查询结果:', result.data);
// console.log('查询结果:', result.data);
} else {
new Notice(`查询失败: ${result.error}`);
console.error('查询错误:', result.error);