From 30bd3d2d5214ddb5c6b0feee5e166323d80d0903 Mon Sep 17 00:00:00 2001 From: linyuchen Date: Sun, 28 Apr 2024 18:22:17 +0800 Subject: [PATCH] refactor: ws log --- src/onebot11/server/ws/WebsocketServer.ts | 2 +- vite.config.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/onebot11/server/ws/WebsocketServer.ts b/src/onebot11/server/ws/WebsocketServer.ts index d9b2c532..8486e26b 100644 --- a/src/onebot11/server/ws/WebsocketServer.ts +++ b/src/onebot11/server/ws/WebsocketServer.ts @@ -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)); } diff --git a/vite.config.ts b/vite.config.ts index e77e7533..cd8d79a5 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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) => {