Selaa lähdekoodia

一些不必要信息的移除

skyfffire 2 viikkoa sitten
vanhempi
commit
a407af33f1
1 muutettua tiedostoa jossa 1 lisäystä ja 7 poistoa
  1. 1 7
      src/strategy.rs

+ 1 - 7
src/strategy.rs

@@ -90,7 +90,7 @@ impl Strategy {
             }
             StrategyState::WaitingMarketOrder { order_id } => {
                 if let Err(e) = self.handle_waiting_market_order(dm, order_id).await {
-                    warn!("等待价单状态处理失败: {}", e);
+                    warn!("等待价单状态处理失败: {}", e);
                 }
             }
         }
@@ -135,7 +135,6 @@ impl Strategy {
                 Ok(())
             }
             Err(e) => {
-                warn!("下限价买单失败: {}", e);
                 Err(e)
             }
         }
@@ -167,7 +166,6 @@ impl Strategy {
                 // 订单未成交,继续检查价格
             }
             Err(e) => {
-                warn!("检查订单成交状态失败: {}", e);
                 return Err(e);
             }
         }
@@ -193,7 +191,6 @@ impl Strategy {
 
         // 尝试撤单
         if let Err(e) = self.cancel_order(&order_id).await {
-            warn!("撤单操作失败: {}", e);
             return Err(e);
         }
 
@@ -213,7 +210,6 @@ impl Strategy {
                 Ok(())
             }
             Err(e) => {
-                warn!("检查订单部分成交状态失败: {}", e);
                 Err(e)
             }
         }
@@ -245,7 +241,6 @@ impl Strategy {
                 Ok(())
             }
             Err(e) => {
-                warn!("下市价卖单失败: {}", e);
                 Err(e)
             }
         }
@@ -279,7 +274,6 @@ impl Strategy {
                Ok(())
            }
            Err(e) => {
-               warn!("检查市价单成交状态失败: {}", e);
                Err(e)
            }
        }