refactor: ws log

This commit is contained in:
linyuchen 2024-04-28 18:22:17 +08:00
parent f8abb73c92
commit 30bd3d2d52
2 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class OB11WebsocketServer extends WebsocketServerBase {
try {
receiveData = JSON.parse(msg.toString());
echo = receiveData.echo;
log('收到正向Websocket消息', receiveData);
logDebug('收到正向Websocket消息', receiveData);
} catch (e) {
return wsReply(wsClient, OB11Response.error('json解析失败请检查数据格式', 1400, echo));
}

View File

@ -38,6 +38,7 @@ const baseConfigPlugin: PluginOption[] = [
{ src: './src/onebot11/onebot11.json', dest: 'dist/config/' },
{ src: './package.json', dest: 'dist' },
{ src: './README.md', dest: 'dist' },
{ src: './logo.png', dest: 'dist/logs' },
{ src: './src/core.lib/MoeHoo-win32-x64.node', dest: 'dist' },
{ src: './src/core.lib/MoeHoo-linux-x64.node', dest: 'dist' },
...(startScripts.map((startScript) => {