From 59867cd5b628ce17b1fed8a0c5e45e0acd8ce711 Mon Sep 17 00:00:00 2001 From: jeremyhi Date: Wed, 7 Jan 2026 16:08:35 +0800 Subject: [PATCH] fix: remove log_env_flags (#7529) Signed-off-by: jeremyhi --- src/cmd/src/lib.rs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/cmd/src/lib.rs b/src/cmd/src/lib.rs index 7055be2498..46ca4c8a76 100644 --- a/src/cmd/src/lib.rs +++ b/src/cmd/src/lib.rs @@ -108,7 +108,7 @@ pub trait App: Send { } } -/// Log the versions of the application, and the arguments passed to the cli. +/// Log the versions of the application. /// /// `version` should be the same as the output of cli "--version"; /// and the `short_version` is the short version of the codes, often consist of git branch and commit. @@ -118,10 +118,7 @@ pub fn log_versions(version: &str, short_version: &str, app: &str) { .with_label_values(&[common_version::version(), short_version, app]) .inc(); - // Log version and argument flags. info!("GreptimeDB version: {}", version); - - log_env_flags(); } pub fn create_resource_limit_metrics(app: &str) { @@ -144,13 +141,6 @@ pub fn create_resource_limit_metrics(app: &str) { } } -fn log_env_flags() { - info!("command line arguments"); - for argument in std::env::args() { - info!("argument: {}", argument); - } -} - pub fn maybe_activate_heap_profile(memory_options: &common_options::memory::MemoryOptions) { if memory_options.enable_heap_profiling { match activate_heap_profile() {