mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-06 05:17:42 +00:00
Replace prints with logs and fix grammar (#437)
* refactor: replace print statements with proper logging and fix grammar - Fix English grammar errors in existing log messages - Add tracing imports where needed - Improve log message clarity and consistency - Follow project logging best practices using tracing crate * fix: resolve clippy warnings and format code - Fix unused import warnings by making test imports conditional with #[cfg(test)] - Fix unused variable warning by prefixing with underscore - Run cargo fmt to fix formatting issues - Ensure all code passes clippy checks with -D warnings flag * refactor: move tracing::debug import into test module Move the tracing::debug import from file-level #[cfg(test)] into the test module itself for better code organization and consistency with other test modules * Checkpoint before follow-up message Co-authored-by: anzhengchao <anzhengchao@gmail.com> * refactor: move tracing::debug import into test module in user_agent.rs Complete the refactoring by moving the tracing::debug import from file-level #[cfg(test)] into the test module for consistency across all test files --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com>
This commit is contained in:
@@ -728,7 +728,7 @@ impl ReplicationPool {
|
||||
// Either already satisfied or worker count changed while waiting for the lock.
|
||||
return;
|
||||
}
|
||||
println!("2 resize_lrg_workers");
|
||||
debug!("Resizing large workers pool");
|
||||
|
||||
let active_workers = Arc::clone(&self.active_lrg_workers);
|
||||
let obj_layer = Arc::clone(&self.obj_layer);
|
||||
@@ -743,7 +743,7 @@ impl ReplicationPool {
|
||||
|
||||
tokio::spawn(async move {
|
||||
while let Some(operation) = receiver.recv().await {
|
||||
println!("resize workers 1");
|
||||
debug!("Processing replication operation in worker");
|
||||
active_workers_clone.fetch_add(1, Ordering::SeqCst);
|
||||
|
||||
if let Some(info) = operation.as_any().downcast_ref::<ReplicateObjectInfo>() {
|
||||
|
||||
Reference in New Issue
Block a user