日志控制

This commit is contained in:
chen wei bo
2025-09-21 20:36:25 +08:00
parent e78f6b937e
commit 93bfe3174f
23 changed files with 91 additions and 81 deletions
@@ -308,7 +308,7 @@ export class ChatPanel extends li_BaseView implements IChatPanelCallback {
private switchVideoByEmotion(emotion: VideoEmotion): void {
if (!this.videoLayer) {
console.warn("Cannot switch video: missing video player");
logger.warn("Cannot switch video: missing video player");
return;
}
// Get video data from ChatModel through ChatController
@@ -472,7 +472,7 @@ export class ChatPanel extends li_BaseView implements IChatPanelCallback {
* @param error 错误信息
*/
public onError(error: Error): void {
console.error("Chat error:", error);
logger.error("Chat error:", error);
// 出错时加载动画会被自动移除,可以在这里显示错误提示给用户
}