Skip to content

Commit

Permalink
Omit empty filter log (#2393)
Browse files Browse the repository at this point in the history
# Changes
#2354 collapsed these logs
into one but did not check that there was even an order filtered out.
This led to many logs stating that no order was filtered out for a given
reason.
  • Loading branch information
MartinquaXD authored Feb 9, 2024
1 parent 5d7d501 commit e61e525
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/autopilot/src/solvable_orders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,9 @@ impl OrderFilterCounter {
for order_uid in filtered_orders.keys() {
self.orders.remove(order_uid).unwrap();
}
tracing::debug!(%reason, orders = ?filtered_orders, "filtered orders");
if !filtered_orders.is_empty() {
tracing::debug!(%reason, orders = ?filtered_orders, "filtered orders");
}
filtered_orders.into_keys().collect()
}

Expand Down

0 comments on commit e61e525

Please sign in to comment.