Skip to content

Commit

Permalink
[TRIVIAL] Log bad token address (#3182)
Browse files Browse the repository at this point in the history
Currently, it is impossible to understand which exactly of the order's
tokens was considered `bad` when it's quality is taken from the cache.
Once this log is added, it will be possible search for bad token
detection logs using either sell or buy token address.
  • Loading branch information
squadgazzz authored Dec 26, 2024
1 parent bbd1de3 commit afb7790
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/driver/src/domain/competition/bad_tokens/simulation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ impl Detector {
.await;
match result {
Err(err) => {
tracing::debug!(?err, "failed to determine token quality");
tracing::debug!(?err, token=?sell_token.0, "failed to determine token quality");
None
}
Ok(TokenQuality::Good) => {
Expand All @@ -99,7 +99,7 @@ impl Detector {
Some(Quality::Supported)
}
Ok(TokenQuality::Bad { reason }) => {
tracing::debug!(reason, "cache token as unsupported");
tracing::debug!(reason, token=?sell_token.0, "cache token as unsupported");
inner
.cache
.update_quality(sell_token, Quality::Unsupported, now);
Expand Down

0 comments on commit afb7790

Please sign in to comment.