core: move some logs to debug mode

This commit is contained in:
undefined committed 2021-07-31 03:22:00 +08:00
1 parent 18bd8dfa78
commit 28a5c894f7
3 files changed
+7 -2

No files matched your search

+1 -1
View File
@@ -157,7 +157,7 @@ class JudgeConnectionHandler extends ConnectionHandler {
}
async message(msg) {
if (msg.key !== 'ping') logger.info('%o', msg);
if (msg.key !== 'ping') logger[['status', 'next'].includes(msg.key) ? 'debug' : 'info']('%o', msg);
if (msg.key === 'next') await next(msg);
else if (msg.key === 'end') {
await end({ judger: this.user._id, ...msg }).catch((e) => logger.error(e));