wuyi 2 miesięcy temu
rodzic
commit
6e64dd9a7c
1 zmienionych plików z 2 dodań i 7 usunięć
  1. 2 7
      src/services/tg-msg-send.service.ts

+ 2 - 7
src/services/tg-msg-send.service.ts

@@ -206,13 +206,8 @@ export class TgMsgSendService {
       }
     } catch (error) {
       const errorMessage = this.extractErrorMessage(error)
-      // 忽略断开连接时的 TIMEOUT 错误,这些是更新循环导致的,不影响功能
-      // TelegramClient 断开连接后,后台的更新循环可能仍在运行并产生超时错误
-      if (errorMessage.includes('TIMEOUT')) {
-        // 静默忽略,这些错误是无害的
-        this.app.log.debug({ msg: '断开连接时的更新循环超时(可忽略)' })
-      } else {
-        this.app.log.warn({ msg: '断开连接时发生错误', error: errorMessage })
+      if (!errorMessage.includes('TIMEOUT')) {
+        this.app.log.error({ msg: '断开连接时发生错误', error: errorMessage })
       }
     }
   }