mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-24 23:06:51 +00:00
fix: 清理导出服务日志并简化whisper接口参数
- 移除exportService中的冗余console日志输出 - 简化whisper API接口,移除downloadModel和getModelStatus的payload参数 - 清理图片、表情、语音导出过程中的调试日志 - 移除数据库查询和媒体处理中的详细日志记录 - 优化代码可读性,减少控制台输出噪音
This commit is contained in:
@@ -58,11 +58,13 @@ export class WcdbService {
|
||||
})
|
||||
|
||||
this.worker.on('error', (err) => {
|
||||
console.error('WCDB Worker 错误:', err)
|
||||
// Worker error
|
||||
})
|
||||
|
||||
this.worker.on('exit', (code) => {
|
||||
if (code !== 0) console.error(`WCDB Worker 异常退出,退出码: ${code}`)
|
||||
if (code !== 0) {
|
||||
// Worker exited with error
|
||||
}
|
||||
this.worker = null
|
||||
})
|
||||
|
||||
@@ -73,7 +75,7 @@ export class WcdbService {
|
||||
this.setLogEnabled(this.logEnabled)
|
||||
|
||||
} catch (e) {
|
||||
console.error('创建 WCDB Worker 失败:', e)
|
||||
// Failed to create worker
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,7 +99,7 @@ export class WcdbService {
|
||||
setPaths(resourcesPath: string, userDataPath: string): void {
|
||||
this.resourcesPath = resourcesPath
|
||||
this.userDataPath = userDataPath
|
||||
this.callWorker('setPaths', { resourcesPath, userDataPath }).catch(console.error)
|
||||
this.callWorker('setPaths', { resourcesPath, userDataPath }).catch(() => {})
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -105,7 +107,7 @@ export class WcdbService {
|
||||
*/
|
||||
setLogEnabled(enabled: boolean): void {
|
||||
this.logEnabled = enabled
|
||||
this.callWorker('setLogEnabled', { enabled }).catch(console.error)
|
||||
this.callWorker('setLogEnabled', { enabled }).catch(() => {})
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user