From bed875d3e0d114398da8b2f94d4473293cbc45a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E6=AD=A3=E8=B6=85?= Date: Sun, 14 Jun 2026 08:35:59 +0800 Subject: [PATCH] fix(logging): remove guardrail script trailing whitespace (#3424) --- scripts/check_logging_guardrails.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/check_logging_guardrails.sh b/scripts/check_logging_guardrails.sh index 46439ed00..b5f844c01 100755 --- a/scripts/check_logging_guardrails.sh +++ b/scripts/check_logging_guardrails.sh @@ -389,7 +389,7 @@ forbidden_patterns=( 'warn!("file looks like a private key but failed to decode (passphrase-protected keys are not supported)"' 'debug!("not a valid private key, skipping"' 'info!("host key loading complete"' - 'warn!("SFTP host key file permission enforcement is not active on Windows.' + 'warn!("SFTP host key file permission enforcement is not active on Windows.' 'info!("Dial9 telemetry disabled"' 'info!("Validating dial9 telemetry configuration"' 'warn!("Failed to create dial9 output directory '\''{}'\'': {}"' @@ -419,21 +419,21 @@ forbidden_patterns=( 'debug!("Log directory does not exist: {:?}"' 'info!("Found {} regular log files, total size: {} bytes ({:.2} MB)"' 'info!("Cleanup completed: deleted {} files, freed {} bytes ({:.2} MB)"' - 'warn!(file = ?file.path, error = %err, "parallel compression failed"' + 'warn!(file = ?file.path, error = %err, "parallel compression failed"' 'warn!("parallel compression worker panicked, falling back to serial path"' 'info!("parallel cleanup finished"' - 'warn!(file = ?file.path, error = %err, "serial compression failed, source kept"' + 'warn!(file = ?file.path, error = %err, "serial compression failed, source kept"' 'info!("[DRY RUN] Would delete: {:?} ({} bytes)"' 'debug!("Deleted: {:?}"' 'error!("Failed to delete {:?}: {}"' 'warn!("zstd compression failed, fallback to gzip"' - 'debug!(file = ?archive_path, "compressed archive already exists, skipping"' + 'debug!(file = ?archive_path, "compressed archive already exists, skipping"' 'info!("[DRY RUN] Would compress file: {:?} -> {:?}"' 'debug!("compression finished"' 'debug!("Excluding file from cleanup: {:?}"' - 'tracing::warn!("Failed to delete empty file {:?}: {}"' + 'tracing::warn!("Failed to delete empty file {:?}: {}"' 'debug!("Deleted empty file: {:?}"' - 'tracing::info!("[DRY RUN] Would delete empty file: {:?}"' + 'tracing::info!("[DRY RUN] Would delete empty file: {:?}"' 'warn!("Failed to load data usage from backend: {}"' 'warn!("Failed to list buckets for cluster metrics: {}"' 'warn!("Failed to load data usage for bucket metrics: {}"'