Sfoglia il codice sorgente

日志放错地方了,ri

skyfffire 2 anni fa
parent
commit
6c76c3dffd
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      exchange/binance_usdt_swap_ws.py

+ 1 - 1
exchange/binance_usdt_swap_ws.py

@@ -200,6 +200,7 @@ class BinanceUsdtSwapWs:
 
     # @timeit
     def _update_depth20(self, msg):
+        logger.info(msg)
         self.public_update_time = time.time()
         msg = ujson.loads(msg)
         if self._check_update_u(msg['u']):
@@ -253,7 +254,6 @@ class BinanceUsdtSwapWs:
 
     # @timeit
     def _update_depth(self, msg):
-        logger.info(msg)
         self.public_update_time = time.time()
         msg = ujson.loads(msg)
         self.depth_update.append(msg)