Skip to content

Commit

Permalink
More minor logging improvements (#1995)
Browse files Browse the repository at this point in the history
# Changes

- Only log solutions in info if they are non empty
- Log the full auction in auction kickoff log

---------

Co-authored-by: Martin Beckmann <[email protected]>
  • Loading branch information
fleupold and MartinquaXD authored Oct 20, 2023
1 parent efc5ef4 commit 400e9de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/autopilot/src/run_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ impl RunLoop {
}

async fn single_run(&self, auction_id: AuctionId, auction: &Auction) {
tracing::info!("solving");
tracing::info!(?auction, "solving");

let solutions = {
let mut solutions = self.competition(auction_id, auction).await;
Expand Down
2 changes: 1 addition & 1 deletion crates/driver/src/infra/observe/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ pub fn fetching_liquidity_failed(err: &boundary::Error) {

/// Observe the solutions returned by the solver.
pub fn solutions(solutions: &[Solution]) {
if !solutions.is_empty() {
if solutions.iter().any(|s| !s.is_empty()) {
tracing::info!(?solutions, "computed solutions");
} else {
tracing::debug!("no solutions");
Expand Down

0 comments on commit 400e9de

Please sign in to comment.