mirror of
https://github.com/LLOneBot/LLOneBot.git
synced 2024-11-22 01:56:33 +00:00
perf: 去掉多余日志
This commit is contained in:
parent
ccf91f4a94
commit
eb32ecb79b
@ -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())
|
||||
}
|
||||
|
||||
|
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user