Reduce noisy runtime logging in frontend flows.

This keeps chat, notification, and post interactions cleaner in production while preserving error-level visibility.
This commit is contained in:
2026-03-09 22:18:47 +08:00
parent 3968660048
commit 63e32b15a3
21 changed files with 14 additions and 284 deletions

View File

@@ -70,10 +70,6 @@ class PrefetchService {
}
this.queue.splice(insertIndex, 0, task);
if (this.DEBUG) {
console.log(`[Prefetch] 添加任务: ${task.key}, 优先级: ${Priority[task.priority]}`);
}
this.processQueue();
}
@@ -106,13 +102,7 @@ class PrefetchService {
*/
private async executeTask(task: PrefetchTask): Promise<void> {
try {
if (this.DEBUG) {
console.log(`[Prefetch] 执行任务: ${task.key}`);
}
await task.executor();
if (this.DEBUG) {
console.log(`[Prefetch] 任务完成: ${task.key}`);
}
} catch (error) {
if (this.DEBUG) {
console.warn(`[Prefetch] 任务失败: ${task.key}`, error);
@@ -230,10 +220,6 @@ function prefetchGroupMembers(groupIds: string[]): void {
* 预取最关键的数据
*/
function prefetchOnAppLaunch(): void {
if (__DEV__) {
console.log('[Prefetch] 开始应用启动预取');
}
// 高优先级:用户信息
prefetchUserInfo();