Browse Source

去掉压测log

gemercheung 3 năm trước cách đây
mục cha
commit
2112690377
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  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)}`);
+        }
+
         // }
         // }
       });
       });
     }
     }