Browse Source

去掉压测log

gemercheung 3 years ago
parent
commit
2112690377
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/controller/room/index.js

+ 5 - 1
src/controller/room/index.js

@@ -333,7 +333,11 @@ export class RoomController extends BasicController {
       this.socket.onAny((event, data) => {
       this.socket.onAny((event, data) => {
         // if (event !== "webSyncAction") {
         // if (event !== "webSyncAction") {
         // console.log(`onAny:get ${event}, data:${JSON.stringify(data)}`);
         // console.log(`onAny:get ${event}, data:${JSON.stringify(data)}`);
-        this.logger.info(`onAny:get ${event}, data:${JSON.stringify(data)}`);
+        // 去掉压测事件
+        if (event !== "client to server event") {
+          this.logger.info(`onAny:get ${event}, data:${JSON.stringify(data)}`);
+        }
+
         // }
         // }
       });
       });
     }
     }