diff --git a/assets/Scripts/chat18x/core/ChatAIService.ts b/assets/Scripts/chat18x/core/ChatAIService.ts index 782f1920..7143b615 100644 --- a/assets/Scripts/chat18x/core/ChatAIService.ts +++ b/assets/Scripts/chat18x/core/ChatAIService.ts @@ -70,8 +70,8 @@ export class ChatAIService { }, }); - console.log("-------AI 启动成功-------"); - console.log(this.ai); + logger.log("-------AI 启动成功-------"); + logger.log(this.ai); this.ai.operations; } catch (error) { TipsPanel.show(LanguageUtils.getText("chat_error_code_2001")); diff --git a/assets/Scripts/chat18x/utils/ErrorHandler.ts b/assets/Scripts/chat18x/utils/ErrorHandler.ts index 27626614..ae381fda 100644 --- a/assets/Scripts/chat18x/utils/ErrorHandler.ts +++ b/assets/Scripts/chat18x/utils/ErrorHandler.ts @@ -171,7 +171,7 @@ export class ErrorHandler { */ public clearErrorLog(): void { this.errorLog = []; - console.log("Error log cleared"); + logger.log("Error log cleared"); } /**