Skip to content

Commit 5cfb895

Browse files
committed
chore: Replace print_startup_string with structured event
1 parent 8742c2f commit 5cfb895

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 druid_controller::{DRUID_CONTROLLER_NAME, FULL_CONTROLLER_NAME};
55
use futures::StreamExt;
66
use stackable_operator::{
@@ -61,13 +61,14 @@ async fn main() -> anyhow::Result<()> {
6161
APP_NAME,
6262
tracing_target,
6363
);
64-
stackable_operator::utils::print_startup_string(
65-
crate_description!(),
66-
crate_version!(),
67-
built_info::GIT_VERSION,
68-
built_info::TARGET,
69-
built_info::BUILT_TIME_UTC,
70-
built_info::RUSTC_VERSION,
64+
tracing::info!(
65+
built_info.pkg_version = built_info::PKG_VERSION,
66+
built_info.git_version = built_info::GIT_VERSION,
67+
built_info.target = built_info::TARGET,
68+
built_info.built_time_utc = built_info::BUILT_TIME_UTC,
69+
built_info.rustc_version = built_info::RUSTC_VERSION,
70+
"Starting {description}",
71+
description = built_info::PKG_DESCRIPTION
7172
);
7273
let product_config = product_config.load(&[
7374
"deploy/config-spec/properties.yaml",

0 commit comments

Comments
 (0)