refactor(log): update some logs

This commit is contained in:
Matthew Esposito 2024-06-29 10:44:33 -04:00
parent 459a8e1245
commit c565ebfb01

View File

@ -345,11 +345,8 @@ pub async fn json(path: String, quarantine: bool) -> Result<Value, String> {
response.headers().get("x-ratelimit-used").and_then(|val| val.to_str().ok().map(|s| s.to_string())),
) {
trace!(
"Ratelimit remaining: Header says {}, we have {}. Rollover: {}. Ratelimit used: {}",
remaining,
current_rate_limit,
"Ratelimit remaining: Header says {remaining}, we have {current_rate_limit}. Resets in {reset}. Rollover: {}. Ratelimit used: {used}",
if is_rolling_over { "yes" } else { "no" },
used,
);
Some(reset)
} else {