Skip to content

Commit 8539181

Browse files
committed
chore: Replace print_startup_string with structured event
1 parent aad598d commit 8539181

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

rust/operator-binary/src/main.rs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::sync::Arc;
22

3-
use clap::{crate_description, crate_version, Parser};
3+
use clap::Parser;
44
use futures::{pin_mut, StreamExt};
55
use history::history_controller;
66
use product_config::ProductConfigManager;
@@ -81,13 +81,14 @@ async fn main() -> anyhow::Result<()> {
8181
"spark-k8s",
8282
tracing_target,
8383
);
84-
stackable_operator::utils::print_startup_string(
85-
crate_description!(),
86-
crate_version!(),
87-
built_info::GIT_VERSION,
88-
built_info::TARGET,
89-
built_info::BUILT_TIME_UTC,
90-
built_info::RUSTC_VERSION,
84+
tracing::info!(
85+
built_info.pkg_version = built_info::PKG_VERSION,
86+
built_info.git_version = built_info::GIT_VERSION,
87+
built_info.target = built_info::TARGET,
88+
built_info.built_time_utc = built_info::BUILT_TIME_UTC,
89+
built_info.rustc_version = built_info::RUSTC_VERSION,
90+
"Starting {description}",
91+
description = built_info::PKG_DESCRIPTION
9192
);
9293

9394
let client = stackable_operator::client::initialize_operator(

0 commit comments

Comments
 (0)