Remove some logging (#5631)

Co-authored-by: Douwe Osinga <douwe@squareup.com>
This commit is contained in:
Douwe Osinga
2025-11-07 12:43:18 -05:00
committed by GitHub
parent 899100a5e4
commit 4b0bef18ae
2 changed files with 0 additions and 25 deletions
-5
View File
@@ -433,13 +433,8 @@ impl Provider for DatabricksProvider {
.collect();
if models.is_empty() {
tracing::debug!("No serving endpoints found in Databricks workspace");
Ok(None)
} else {
tracing::debug!(
"Found {} serving endpoints in Databricks workspace",
models.len()
);
Ok(Some(models))
}
}
-20
View File
@@ -70,13 +70,8 @@ impl PricingCache {
let age_days = (now - cached.fetched_at) / (24 * 60 * 60);
if age_days < CACHE_TTL_DAYS {
tracing::debug!(
"Loaded pricing data from disk cache (age: {} days)",
age_days
);
Ok(Some(cached))
} else {
tracing::debug!("Disk cache expired (age: {} days)", age_days);
Ok(None)
}
}
@@ -101,8 +96,6 @@ impl PricingCache {
let cache_path = cache_dir.join(CACHE_FILE_NAME);
let json_data = serde_json::to_vec_pretty(data)?;
tokio::fs::write(&cache_path, json_data).await?;
tracing::debug!("Saved pricing data to disk cache");
Ok(())
}
@@ -171,19 +164,6 @@ impl PricingCache {
fetched_at: SystemTime::now().duration_since(UNIX_EPOCH)?.as_secs(),
};
// Log how many models we fetched
let total_models: usize = cached_data
.pricing
.values()
.map(|models| models.len())
.sum();
tracing::debug!(
"Fetched pricing for {} providers with {} total models from OpenRouter",
cached_data.pricing.len(),
total_models
);
// Save to disk
self.save_to_disk(&cached_data).await?;
// Update memory cache