mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-09 22:59:59 +00:00
refactor(logging): standardize rustfs runtime events (#3396)
* fix(rpc): adjust log levels and reduce noise in storage RPC layer Issue #682: pool rebalance normal flow logs were using warn! instead of info!. Additionally, several high-frequency RPC entry points (ping, write_stream, read_at, walk_dir) were logging at info! level, causing unnecessary log noise in production. Changes: - load_rebalance_meta: warn! → info! for normal flow (3 occurrences) - ping body decode: info! → debug! (fires on every health check) - write_stream/read_at/walk_dir entry: info! → debug! - metrics.rs: lowercase error messages, add structured error field - http_service.rs: add structured error field to walk_dir failure - Add tracing::instrument fields for start_rebalance context * refactor(logging): standardize rustfs runtime events * build(deps): bump workspace dependency versions * build(deps): pin time to 0.3.47 * build(deps): update postgres client versions
This commit is contained in:
@@ -59,6 +59,58 @@ forbidden_patterns=(
|
||||
'error!("Failed to initialize SFTP system: {}"'
|
||||
'warn!("prewarm_local_disk_id_map: failed to load disk id for {}: {}"'
|
||||
'info!("retrying get formats after {:?}"'
|
||||
'info!("📝 Release notes: {}"'
|
||||
'info!("🔗 Download URL: {}"'
|
||||
'debug!("✅ Version check: Current version is up to date: {}"'
|
||||
'warn!("get_notification_config err {:?}"'
|
||||
'error!("ecstore config::init_global_config_sys failed {:?}"'
|
||||
'info!(target: "rustfs::main::startup", "RustFS API: {api_endpoints} {localhost_endpoint}")'
|
||||
'info!("virtual-hosted-style requests are enabled use domain_name {:?}"'
|
||||
'info!("HTTP response compression enabled: extensions={:?}, mime_patterns={:?}, min_size={} bytes"'
|
||||
'warn!("handle ListCannedPolicies")'
|
||||
'warn!("handle AddCannedPolicy")'
|
||||
'warn!("handle InfoCannedPolicy")'
|
||||
'warn!("handle RemoveCannedPolicy")'
|
||||
'warn!("handle SetPolicyForUserOrGroup")'
|
||||
'warn!("handle Trace")'
|
||||
'warn!("handle AddServiceAccount ")'
|
||||
'warn!("handle UpdateServiceAccount")'
|
||||
'warn!("handle InfoServiceAccount")'
|
||||
'warn!("handle TemporaryAccountInfo")'
|
||||
'warn!("handle InfoAccessKey")'
|
||||
'warn!("handle ListServiceAccount")'
|
||||
'warn!("handle ListAccessKeysBulk")'
|
||||
'warn!("handle DeleteServiceAccount")'
|
||||
'debug!("{action}, e: {:?}")'
|
||||
'warn!("list policies failed, e: {:?}")'
|
||||
'error!("Invalid JSON in configure request: {}")'
|
||||
'warn!("get_sse_config err {:?}")'
|
||||
'warn!("get_cors_config err {:?}")'
|
||||
'warn!("get_notification_config err {:?}")'
|
||||
'warn!("get_tagging_config err {:?}")'
|
||||
'warn!("get_object_lock_config err {:?}")'
|
||||
'info!("Starting get_object_tagging for bucket: {}, object: {}")'
|
||||
'debug!("bucket_sse_config_result={:?}")'
|
||||
'debug!("TDD: bucket_sse_config={:?}")'
|
||||
'info!("Keystone authentication disabled")'
|
||||
'info!("Initializing Keystone authentication...")'
|
||||
'info!("Keystone authentication initialized successfully")'
|
||||
'info!("Created TLS acceptor with root single certificate")'
|
||||
'info!("TLS certificate hot reload enabled, checking every {}s")'
|
||||
'info!("Initializing capacity management system...")'
|
||||
'info!("Capacity management system initialized successfully")'
|
||||
'info!("CPU profile exported: {}")'
|
||||
'warn!("failed to reload current server config for object lambda request: {err}")'
|
||||
'warn!("failed to fetch live events from peer {}: {err}")'
|
||||
'warn!("timed out fetching live events from peer {}")'
|
||||
'warn!("failed to serialize remote listen notification event: {err}")'
|
||||
'warn!("failed to decode live events from peer {}: {err}")'
|
||||
'warn!("failed to serialize listen notification event: {err}")'
|
||||
'warn!("listen notification stream lagged and skipped {skipped} events")'
|
||||
'debug!("Ignoring crypto provider installation error: {err:?}")'
|
||||
'warn!("KMS initialization skipped: {e}")'
|
||||
'warn!("Audit system: {e}")'
|
||||
'warn!("notification system: {e}")'
|
||||
)
|
||||
|
||||
for pattern in "${forbidden_patterns[@]}"; do
|
||||
|
||||
Reference in New Issue
Block a user