11mod restart_controller;
22
3- use built_info:: PKG_VERSION ;
4- use clap:: { crate_description, crate_version, Parser } ;
3+ use clap:: Parser ;
54use futures:: pin_mut;
65use stackable_operator:: {
76 cli:: { Command , ProductOperatorRun } ,
@@ -28,9 +27,9 @@ async fn main() -> anyhow::Result<()> {
2827 let opts = Opts :: parse ( ) ;
2928 match opts. cmd {
3029 Command :: Crd => {
31- AuthenticationClass :: print_yaml_schema ( PKG_VERSION ) ?;
32- S3Connection :: print_yaml_schema ( PKG_VERSION ) ?;
33- S3Bucket :: print_yaml_schema ( PKG_VERSION ) ?;
30+ AuthenticationClass :: print_yaml_schema ( built_info :: PKG_VERSION ) ?;
31+ S3Connection :: print_yaml_schema ( built_info :: PKG_VERSION ) ?;
32+ S3Bucket :: print_yaml_schema ( built_info :: PKG_VERSION ) ?;
3433 }
3534 Command :: Run ( ProductOperatorRun {
3635 product_config : _,
@@ -43,13 +42,14 @@ async fn main() -> anyhow::Result<()> {
4342 "commons" ,
4443 tracing_target,
4544 ) ;
46- stackable_operator:: utils:: print_startup_string (
47- crate_description ! ( ) ,
48- crate_version ! ( ) ,
49- built_info:: GIT_VERSION ,
50- built_info:: TARGET ,
51- built_info:: BUILT_TIME_UTC ,
52- built_info:: RUSTC_VERSION ,
45+ tracing:: info!(
46+ built_info. pkg_version = built_info:: PKG_VERSION ,
47+ built_info. git_version = built_info:: GIT_VERSION ,
48+ built_info. target = built_info:: TARGET ,
49+ built_info. built_time_utc = built_info:: BUILT_TIME_UTC ,
50+ built_info. rustc_version = built_info:: RUSTC_VERSION ,
51+ "Starting {description}" ,
52+ description = built_info:: PKG_DESCRIPTION
5353 ) ;
5454
5555 let client = stackable_operator:: client:: initialize_operator (
0 commit comments