瀏覽代碼

日志。

skyfffire 1 年之前
父節點
當前提交
54c26f3557
共有 2 個文件被更改,包括 6 次插入2 次删除
  1. 3 1
      strategy/src/binance_usdt_swap.rs
  2. 3 1
      strategy/src/gate_swap.rs

+ 3 - 1
strategy/src/binance_usdt_swap.rs

@@ -63,7 +63,9 @@ async fn on_data(bot_arc_clone: Arc<Mutex<Quant>>,
     trace_stack.on_after_network(data.time);
     trace_stack.on_before_unlock_quant();
 
-    info!("bian>{}", trace_stack.to_string());
+    if data.time != 0 {
+        info!("bian>{}", trace_stack.to_string());
+    }
 
     // if data.code != "200".to_string() {
     //     return;

+ 3 - 1
strategy/src/gate_swap.rs

@@ -104,7 +104,9 @@ async fn on_data(bot_arc_clone: Arc<Mutex<Quant>>,
     trace_stack.on_after_network(data.time);
     trace_stack.on_before_unlock_quant();
 
-    info!("gate>{}", trace_stack.to_string());
+    if data.time != 0 {
+        info!("bian>{}", trace_stack.to_string());
+    }
 
     // if data.code != "200".to_string() {
     //     return;