update: normalize log

This commit is contained in:
Seijo Cecilia committed 2024-09-04 15:47:14 +08:00
1 parent ba12bc6c91
commit d36a28fa81
16 files changed
+84 -94

No files matched your search

+3 -3
View File
@@ -43,7 +43,7 @@ export class OB11ActiveHttpAdapter implements IOB11NetworkAdapter {
resJson = await res.json();
//logDebug('新消息事件HTTP上报返回快速操作: ', JSON.stringify(resJson));
} catch (e) {
this.logger.logDebug('[OneBot] [Http Client] 新消息事件HTTP上报没有返回快速操作,不需要处理');
this.logger.logDebug('新消息事件 HTTP 上报没有返回快速操作,不需要处理');
return;
}
try {
@@ -51,10 +51,10 @@ export class OB11ActiveHttpAdapter implements IOB11NetworkAdapter {
.handleQuickOperation(event as QuickActionEvent, resJson)
.catch(this.logger.logError);
} catch (e: any) {
this.logger.logError('[OneBot] [Http Client] 新消息事件HTTP上报返回快速操作失败', e);
this.logger.logError('新消息事件 HTTP 上报返回快速操作失败', e);
}
}).catch((e) => {
this.logger.logError('[OneBot] [Http Client] 新消息事件HTTP上报失败', e);
this.logger.logError('新消息事件 HTTP 上报失败', e);
});
}