日志控制
This commit is contained in:
@@ -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);
|
||||
// 出错时加载动画会被自动移除,可以在这里显示错误提示给用户
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user