Skip to content

Commit e6c67a9

Browse files
committed
chore: Replace print_startup_string with structured event
1 parent 4bbd9e0 commit e6c67a9

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::StreamExt;
55
use stackable_operator::{
66
cli::{Command, ProductOperatorRun},
@@ -65,13 +65,14 @@ async fn main() -> anyhow::Result<()> {
6565
APP_NAME,
6666
tracing_target,
6767
);
68-
stackable_operator::utils::print_startup_string(
69-
crate_description!(),
70-
crate_version!(),
71-
built_info::GIT_VERSION,
72-
built_info::TARGET,
73-
built_info::BUILT_TIME_UTC,
74-
built_info::RUSTC_VERSION,
68+
tracing::info!(
69+
built_info.pkg_version = built_info::PKG_VERSION,
70+
built_info.git_version = built_info::GIT_VERSION,
71+
built_info.target = built_info::TARGET,
72+
built_info.built_time_utc = built_info::BUILT_TIME_UTC,
73+
built_info.rustc_version = built_info::RUSTC_VERSION,
74+
"Starting {description}",
75+
description = built_info::PKG_DESCRIPTION
7576
);
7677
let product_config = product_config.load(&[
7778
"deploy/config-spec/properties.yaml",

0 commit comments

Comments
 (0)