Skip to content

Commit 12d88e4

Browse files
committed
chore: replace print_startup_string with print_startup_string
Note: this has the added benefit of displaying the correct tracing target (or call-site), instead of displaying stackable_operator
1 parent 8cb82e9 commit 12d88e4

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/main.rs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
mod error;
22
mod system_information;
33

4-
use clap::{Parser, crate_description, crate_version};
4+
use clap::Parser;
55
use stackable_operator::telemetry::Tracing;
66
use std::path::PathBuf;
77

@@ -45,13 +45,14 @@ fn main() {
4545

4646
let init_span = tracing::error_span!("containerdebug init").entered();
4747

48-
stackable_operator::utils::print_startup_string(
49-
crate_description!(),
50-
crate_version!(),
51-
built_info::GIT_VERSION,
52-
built_info::TARGET,
53-
built_info::BUILT_TIME_UTC,
54-
built_info::RUSTC_VERSION,
48+
tracing::info!(
49+
built_info.pkg_version = built_info::PKG_VERSION,
50+
built_info.git_version = built_info::GIT_VERSION,
51+
built_info.target = built_info::TARGET,
52+
built_info.built_time_utc = built_info::BUILT_TIME_UTC,
53+
built_info.rustc_version = built_info::RUSTC_VERSION,
54+
"Starting {name}",
55+
name = built_info::PKG_NAME
5556
);
5657

5758
let mut collect_ctx = SystemInformation::init();

0 commit comments

Comments
 (0)