Skip to content

Commit 7ae057d

Browse files
committed
chore(olm-deployer): Replace print_startup_string with structured event
1 parent af844db commit 7ae057d

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

rust/olm-deployer/src/main.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,14 @@ async fn main() -> Result<()> {
8989
}) = opts.cmd
9090
{
9191
logging::initialize_logging(ENV_VAR_LOGGING, APP_NAME, tracing_target);
92-
utils::print_startup_string(
93-
crate_description!(),
94-
crate_version!(),
95-
built_info::GIT_VERSION,
96-
built_info::TARGET,
97-
built_info::BUILT_TIME_UTC,
98-
built_info::RUSTC_VERSION,
92+
tracing::info!(
93+
built_info.pkg_version = built_info::PKG_VERSION,
94+
built_info.git_version = built_info::GIT_VERSION,
95+
built_info.target = built_info::TARGET,
96+
built_info.built_time_utc = built_info::BUILT_TIME_UTC,
97+
built_info.rustc_version = built_info::RUSTC_VERSION,
98+
"Starting {description}",
99+
description = built_info::PKG_DESCRIPTION
99100
);
100101

101102
let client =

0 commit comments

Comments
 (0)