We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7294b7c commit 8b5080dCopy full SHA for 8b5080d
graph-gateway/src/studio_client.rs
@@ -140,7 +140,10 @@ impl Actor {
140
if (price < 1e-3) || (price > 1e3) {
141
return Err(format!("Conversion rate out of range ({})", price).into());
142
}
143
- USD::try_from(price.recip()).map_err(|_| "Failed to convert price to decimal value".into())
+ 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)
147
148
149
0 commit comments