Browse Source

fix: bypass electron for logging

Signed-off-by: ryjiang <jiangruiyi@gmail.com>
ryjiang 3 months ago
parent
commit
4782b710e5
1 changed files with 3 additions and 0 deletions
  1. 3 0
      server/src/socket.ts

+ 3 - 0
server/src/socket.ts

@@ -13,6 +13,9 @@ export const logWebSocketRequest = (
   message?: any,
   direction: 'in' | 'out' = 'in'
 ) => {
+  if (isElectron()) {
+    return;
+  }
   const clientId = socket.handshake.query['milvus-client-id'] as string;
   const remoteAddress =
     socket.handshake.address === '::1' ? '127.0.0.1' : socket.handshake.address;