[model-gateway] Improve logging in policies module (#15496)
This commit is contained in:
@@ -58,7 +58,7 @@ impl BucketPolicy {
|
|||||||
bucket_guard.adjust_boundary();
|
bucket_guard.adjust_boundary();
|
||||||
}
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
eprintln!(
|
error!(
|
||||||
"Failed to acquire write lock for bucket {}: {}",
|
"Failed to acquire write lock for bucket {}: {}",
|
||||||
model_id, e
|
model_id, e
|
||||||
);
|
);
|
||||||
@@ -112,7 +112,7 @@ impl BucketPolicy {
|
|||||||
if let Ok(mut bucket_guard) = lock_result {
|
if let Ok(mut bucket_guard) = lock_result {
|
||||||
bucket_guard.init_prefill_worker_urls(worker_urls);
|
bucket_guard.init_prefill_worker_urls(worker_urls);
|
||||||
} else {
|
} else {
|
||||||
eprintln!("Failed to acquire write lock for bucket initialization");
|
error!("Failed to acquire write lock for bucket initialization");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ use std::{
|
|||||||
};
|
};
|
||||||
|
|
||||||
use dashmap::{mapref::entry::Entry, DashMap};
|
use dashmap::{mapref::entry::Entry, DashMap};
|
||||||
use tracing::info;
|
use tracing::debug;
|
||||||
|
|
||||||
type NodeRef = Arc<Node>;
|
type NodeRef = Arc<Node>;
|
||||||
|
|
||||||
@@ -674,9 +674,9 @@ impl Tree {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
info!("Before eviction - Used size per tenant:");
|
debug!("Before eviction - Used size per tenant:");
|
||||||
for entry in self.tenant_char_count.iter() {
|
for entry in self.tenant_char_count.iter() {
|
||||||
info!("Tenant: {}, Size: {}", entry.key(), entry.value());
|
debug!("Tenant: {}, Size: {}", entry.key(), entry.value());
|
||||||
}
|
}
|
||||||
|
|
||||||
// Process eviction
|
// Process eviction
|
||||||
@@ -728,9 +728,9 @@ impl Tree {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
info!("After eviction - Used size per tenant:");
|
debug!("After eviction - Used size per tenant:");
|
||||||
for entry in self.tenant_char_count.iter() {
|
for entry in self.tenant_char_count.iter() {
|
||||||
info!("Tenant: {}, Size: {}", entry.key(), entry.value());
|
debug!("Tenant: {}, Size: {}", entry.key(), entry.value());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user