perf: 去掉多余日志

This commit is contained in:
linyuchen 2024-02-14 00:37:53 +08:00
parent ccf91f4a94
commit eb32ecb79b
2 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ export function addHistoryMsg(msg: RawMessage): boolean{
}
export function getHistoryMsgByShortId(shortId: number | string){
log("getHistoryMsgByShortId", shortId, Object.values(msgHistory).map(m=>m.msgShortId))
// log("getHistoryMsgByShortId", shortId, Object.values(msgHistory).map(m=>m.msgShortId))
return Object.values(msgHistory).find(msg => msg.msgShortId.toString() == shortId.toString())
}

View File

@ -56,7 +56,7 @@ function onLoad() {
return
}
postMsg(msg);
log("post msg", msg)
// log("post msg", msg)
}).catch(e => log("constructMessage error: ", e.toString()));
}
}
@ -66,7 +66,7 @@ function onLoad() {
log("llonebot start")
registerReceiveHook<{ msgList: Array<RawMessage> }>(ReceiveCmd.NEW_MSG, (payload) => {
try {
log("received msg length", payload.msgList.length);
// log("received msg length", payload.msgList.length);
postRawMsg(payload.msgList);
} catch (e) {
log("report message error: ", e.toString())