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:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user