Skip to content

Commit 8b5080d

Browse files
committed
Add more logging to conversion rate source
1 parent 7294b7c commit 8b5080d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

graph-gateway/src/studio_client.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,10 @@ impl Actor {
140140
if (price < 1e-3) || (price > 1e3) {
141141
return Err(format!("Conversion rate out of range ({})", price).into());
142142
}
143-
USD::try_from(price.recip()).map_err(|_| "Failed to convert price to decimal value".into())
143+
let usd_to_grt =
144+
USD::try_from(price.recip()).map_err(|_| "Failed to convert price to decimal value")?;
145+
tracing::debug!(%usd_to_grt, source_price = price);
146+
Ok(usd_to_grt)
144147
}
145148
}
146149

0 commit comments

Comments
 (0)