mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-07 05:43:14 +00:00
refactor(logging): normalize admin telemetry and error messages (#3430)
This commit is contained in:
@@ -6,15 +6,35 @@ cd "$repo_root"
|
||||
|
||||
checked_files=(
|
||||
"rustfs/src/main.rs"
|
||||
"rustfs/src/init.rs"
|
||||
"rustfs/src/profiling.rs"
|
||||
"rustfs/src/startup_iam.rs"
|
||||
"rustfs/src/auth.rs"
|
||||
"rustfs/src/protocols/client.rs"
|
||||
"rustfs/src/admin/router.rs"
|
||||
"rustfs/src/admin/handlers/table_catalog.rs"
|
||||
"rustfs/src/admin/handlers/service_account.rs"
|
||||
"rustfs/src/admin/handlers/kms_dynamic.rs"
|
||||
"rustfs/src/admin/handlers/site_replication.rs"
|
||||
"rustfs/src/admin/handlers/group.rs"
|
||||
"rustfs/src/admin/handlers/quota.rs"
|
||||
"rustfs/src/admin/handlers/rebalance.rs"
|
||||
"rustfs/src/admin/handlers/tier.rs"
|
||||
"crates/audit/src/pipeline.rs"
|
||||
"crates/audit/src/system.rs"
|
||||
"crates/audit/src/global.rs"
|
||||
"crates/notify/src/config_manager.rs"
|
||||
"crates/notify/src/runtime_facade.rs"
|
||||
"crates/notify/src/integration.rs"
|
||||
"crates/notify/src/notifier.rs"
|
||||
"crates/notify/src/bucket_config_manager.rs"
|
||||
"crates/notify/src/rule_engine.rs"
|
||||
"crates/notify/src/global.rs"
|
||||
"crates/audit/src/registry.rs"
|
||||
"crates/audit/src/observability.rs"
|
||||
"crates/targets/src/store.rs"
|
||||
"crates/targets/src/target/mqtt.rs"
|
||||
"crates/targets/src/target/webhook.rs"
|
||||
"crates/ecstore/src/store/peer.rs"
|
||||
"crates/ecstore/src/store/init.rs"
|
||||
"crates/ecstore/src/tier/tier.rs"
|
||||
@@ -100,6 +120,25 @@ forbidden_patterns=(
|
||||
'info!("Loaded notification config for bucket: {}"'
|
||||
'info!("Updated notification rules for bucket: {}"'
|
||||
'info!("Removed all notification rules for bucket: {}"'
|
||||
'info!(event = EVENT_NOTIFY_RUNTIME_LIFECYCLE,'
|
||||
'info!("Notification system instance is being dropped"'
|
||||
'info!("Notification shutdown metric snapshot"'
|
||||
'info!("Notification system status snapshot"'
|
||||
'debug!("Audit replay stream skipped"'
|
||||
'warn!("Dropped queued audit payload"'
|
||||
'error!("Queued audit payload failed permanently"'
|
||||
'info!(target_id = %target_id.id, "Webhook target created")'
|
||||
'info!("Webhook target {} initialized"'
|
||||
'info!("Webhook sending queued payload to target: {}"'
|
||||
'debug!("Event saved to store for target: {}"'
|
||||
'debug!("Event sent from store and deleted for target: {}"'
|
||||
'info!("Webhook target closed: {}"'
|
||||
'info!(target_id = %target_id, "MQTT target created")'
|
||||
'info!(target_id = %self.id, "MQTT target initialized and connected.")'
|
||||
'info!(target_id = %target_id, "MQTT event loop task started.")'
|
||||
'info!(target_id = %self.id, "MQTT target close method finished.")'
|
||||
'debug!("Wrote event to store: {}"'
|
||||
'debug!("Deleted event from store: {}"'
|
||||
'info!("Audit configuration reloaded"'
|
||||
'info!("Audit system started"'
|
||||
'info!("Audit metrics reset"'
|
||||
@@ -108,17 +147,117 @@ forbidden_patterns=(
|
||||
'error!("Server encountered an error and is shutting down: {}"'
|
||||
'error!("Failed to initialize Keystone authentication: {}"'
|
||||
'error!("new_global_notification_sys failed {:?}"'
|
||||
'warn!(access_key = %new_cred.access_key, error = ?err, "site replication add service account hook failed")'
|
||||
'warn!(access_key = %query.access_key, error = ?err, "site replication delete service account hook failed")'
|
||||
'debug!("check key failed: {e:?}")'
|
||||
'debug!("list service account failed: {e:?}")'
|
||||
'debug!("list sts account failed: {e:?}")'
|
||||
'error!("license check failed due to unexpected error: {er}")'
|
||||
'info!("Created KMS key: {}"'
|
||||
'info!("Successfully deleted KMS key: {}"'
|
||||
'info!("Cancelled deletion for KMS key: {}"'
|
||||
'info!("Listed {} KMS keys"'
|
||||
'info!("Described KMS key: {}"'
|
||||
'error!("Failed to create KMS key: {}"'
|
||||
'error!("Failed to list KMS keys: {}"'
|
||||
'error!("Failed to describe KMS key {}: {}"'
|
||||
'warn!(access_key = %ak, error = ?err, "site replication create user hook failed")'
|
||||
'info!("OIDC authorize redirect for provider'
|
||||
'warn!("OIDC callback received error from IdP:'
|
||||
'error!("OIDC code exchange failed: {}"'
|
||||
'warn!("OIDC logout fallback triggered: {}"'
|
||||
'warn!("get body failed, e: {:?}")'
|
||||
'warn!("file path is invalid: {}")'
|
||||
'warn!("bucket metadata not found: {e}")'
|
||||
'warn!("get bucket metadata failed: {e}")'
|
||||
'warn!("create bucket failed: {e}")'
|
||||
'warn!("deserialize config failed: {e}")'
|
||||
'warn!(policy = %query.name, error = ?err, "site replication policy add hook failed")'
|
||||
'warn!(policy = %query.name, error = ?err, "site replication policy delete hook failed")'
|
||||
'warn!(target = %query.user_or_group, error = ?err, "site replication policy mapping hook failed")'
|
||||
'warn!(access_key = %ak, error = ?err, "site replication delete user hook failed")'
|
||||
'warn!(target = %target_name, error = ?err, "site replication policy association hook failed")'
|
||||
'error!("Failed to serialize response: {}"'
|
||||
'warn!(peer = %peer.endpoint, error = ?err, "site replication peer metainfo fetch failed")'
|
||||
'warn!(error = ?err, "site replication backfill: failed to list buckets")'
|
||||
'warn!(bucket = %name, error = ?err, "site replication backfill: versioning setup failed")'
|
||||
'warn!(bucket = %name, error = ?err, "site replication backfill: targets setup failed")'
|
||||
'warn!(bucket = %name, error = ?err, "site replication backfill: replication config setup failed")'
|
||||
'warn!(bucket = %name, error = ?err, "site replication backfill: failed to read bucket metadata, assuming lock_enabled=false")'
|
||||
'warn!(bucket = %name, error = ?err, "site replication backfill: make-bucket broadcast failed")'
|
||||
'warn!(bucket = %name, peer = %peer.endpoint, detail = %result.err_detail,'
|
||||
'warn!(peer = %peer.endpoint, error = %err_detail, "site replication peer remove notification failed")'
|
||||
'warn!(peer = %peer.endpoint, error = %detail, "site replication service account rotation failed for peer")'
|
||||
'warn!("handle ListGroups")'
|
||||
'warn!("handle GetGroup")'
|
||||
'warn!("handle DeleteGroup")'
|
||||
'warn!("handle SetGroupStatus")'
|
||||
'warn!("handle UpdateGroupMembers")'
|
||||
'warn!("list groups failed, e: {:?}")'
|
||||
'warn!("get group failed, e: {:?}")'
|
||||
'warn!("delete group failed, e: {:?}")'
|
||||
'warn!("site replication group delete hook failed, err: {err}")'
|
||||
'warn!("enable group failed, e: {:?}")'
|
||||
'warn!("UpdateGroupMembers args {:?}")'
|
||||
'warn!("remove group members")'
|
||||
'warn!("remove group members failed, e: {:?}")'
|
||||
'warn!("add group members")'
|
||||
'warn!("add group members failed, e: {:?}")'
|
||||
'warn!("site replication group membership hook failed, err: {err}")'
|
||||
'warn!("handle SetBucketQuota")'
|
||||
'warn!("handle GetBucketQuota")'
|
||||
'warn!("handle ClearBucketQuota")'
|
||||
'warn!("handle GetBucketQuotaStats")'
|
||||
'warn!("handle CheckBucketQuota")'
|
||||
'info!("Clearing quota for bucket: {}")'
|
||||
'info!("Successfully cleared quota for bucket: {}")'
|
||||
'debug!("Checking quota for bucket: {}, operation: {}, size: {}")'
|
||||
'warn!("handle RebalanceStart")'
|
||||
'warn!("Rebalance started with id: {}")'
|
||||
'warn!("RebalanceStart Loading rebalance meta start")'
|
||||
'warn!("rebalance start propagation failed after local state update: {err}")'
|
||||
'warn!("RebalanceStart Loading rebalance meta done")'
|
||||
'warn!("handle RebalanceStatus")'
|
||||
'warn!("handle RebalanceStop")'
|
||||
'warn!("handle RebalanceStop save_rebalance_stats done ")'
|
||||
'warn!("handle RebalanceStop notification_sys load_rebalance_meta")'
|
||||
'warn!("rebalance stop propagation failed after local state update: {err}")'
|
||||
'warn!("handle RebalanceStop notification_sys load_rebalance_meta done")'
|
||||
'warn!("get body failed, e: {:?}")'
|
||||
'debug!("add tier args {:?}")'
|
||||
'warn!("parse force failed, e: {:?}")'
|
||||
'warn!("tier reserved name, args.name: {}")'
|
||||
'warn!("tier_config_mgr reload failed, e: {:?}")'
|
||||
'warn!("tier_config_mgr add failed, e: {:?}")'
|
||||
'debug!("edit tier args {:?}")'
|
||||
'warn!("tier_config_mgr edit failed, e: {:?}")'
|
||||
'warn!("tier_config_mgr remove failed, e: {:?}")'
|
||||
'warn!("tier_config_mgr rand: {}")'
|
||||
'warn!("tier_config_mgr clear failed, e: {:?}")'
|
||||
'warn!("tier_config_mgr save failed, e: {:?}")'
|
||||
'warn!(
|
||||
component = LOG_COMPONENT_ADMIN,
|
||||
subsystem = LOG_SUBSYSTEM_OBJECT_LAMBDA,
|
||||
event = "object_lambda_tls_verification_disabled"'
|
||||
'info!("FTP system initialized successfully"'
|
||||
'debug!("FTP system is disabled")'
|
||||
'info!("FTP system disabled"'
|
||||
'info!("FTP server shutdown completed")'
|
||||
'error!("Failed to initialize FTP system: {}"'
|
||||
'info!("FTPS system initialized successfully"'
|
||||
'debug!("FTPS system is disabled")'
|
||||
'info!("FTPS system disabled"'
|
||||
'info!("FTPS server shutdown completed")'
|
||||
'error!("Failed to initialize FTPS system: {}"'
|
||||
'info!("WebDAV system initialized successfully"'
|
||||
'debug!("WebDAV system is disabled")'
|
||||
'info!("WebDAV system disabled"'
|
||||
'info!("WebDAV server shutdown completed")'
|
||||
'error!("Failed to initialize WebDAV system: {}"'
|
||||
'info!("SFTP system initialized successfully"'
|
||||
'debug!("SFTP system is disabled")'
|
||||
'info!("SFTP system disabled"'
|
||||
'info!("SFTP server shutdown completed")'
|
||||
'error!("Failed to initialize SFTP system: {}"'
|
||||
'warn!("prewarm_local_disk_id_map: failed to load disk id for {}: {}"'
|
||||
'info!("retrying get formats after {:?}"'
|
||||
@@ -174,6 +313,12 @@ forbidden_patterns=(
|
||||
'warn!("KMS initialization skipped: {e}")'
|
||||
'warn!("Audit system: {e}")'
|
||||
'warn!("notification system: {e}")'
|
||||
'info!("jemalloc profiling controller is NOT available")'
|
||||
'warn!("periodic CPU profiler create failed: {e}")'
|
||||
'warn!("write periodic CPU pprof failed: {e}")'
|
||||
'warn!("periodic CPU report build failed: {e}")'
|
||||
'debug!("profiling: disabled by env")'
|
||||
'debug!("profiling: CPU mode off")'
|
||||
'info!("Starting HealManager")'
|
||||
'info!("Stopping HealManager")'
|
||||
'info!("HealManager started successfully")'
|
||||
@@ -196,6 +341,27 @@ forbidden_patterns=(
|
||||
'info!("Heal queue has {} pending requests, {} tasks active")'
|
||||
'error!("Heal channel processor failed: {}")'
|
||||
'info!("Heal manager with channel processor initialized successfully")'
|
||||
'"Heal object workflow started"'
|
||||
'"Heal object recovery started"'
|
||||
'"Heal object completed"'
|
||||
'"Heal object cleanup completed"'
|
||||
'"Heal metadata workflow started"'
|
||||
'"Heal metadata completed"'
|
||||
'"Heal MRF workflow started"'
|
||||
'"Heal MRF completed"'
|
||||
'"Heal EC decode workflow started"'
|
||||
'"Heal EC decode completed"'
|
||||
'"Heal erasure set workflow started"'
|
||||
'"Heal erasure set format repair completed"'
|
||||
'"Heal erasure set completed"'
|
||||
'"Heal storage repair finished"'
|
||||
'"Heal storage admin operation finished"'
|
||||
'"Heal storage request finished"'
|
||||
'"Erasure set object heal completed"'
|
||||
'"Erasure set heal resumed from checkpoint"'
|
||||
'"Scanner disk bucket state updated"'
|
||||
'"Scanner lifecycle action evaluation started"'
|
||||
'"Scanner state persisted"'
|
||||
'"scanner deep heal downgraded to normal during new-object cooldown"'
|
||||
'"scanner detected folder with excessive direct subfolders"'
|
||||
'"scan_folder: failed to get size for item {}: {}"'
|
||||
|
||||
Reference in New Issue
Block a user