File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -467,6 +467,18 @@ async fn main() -> hyperqueue::Result<()> {
467467 reset_sigpipe ( ) ;
468468 }
469469
470+ let is_long_running = matches ! (
471+ top_opts. subcmd,
472+ SubCommand :: Server ( ServerOpts {
473+ subcmd: ServerCommand :: Start ( _) ,
474+ } ) | SubCommand :: Worker ( WorkerOpts {
475+ subcmd: WorkerCommand :: Start ( _) ,
476+ } )
477+ ) ;
478+ if is_long_running {
479+ log:: info!( "HyperQueue {HQ_VERSION}" ) ;
480+ }
481+
470482 let result = match top_opts. subcmd {
471483 SubCommand :: Server ( opts) => command_server ( & gsettings, opts) . await ,
472484 SubCommand :: Worker ( opts) => match opts. subcmd {
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ pub async fn initialize_worker(
8989 server_directory : & Path ,
9090 configuration : WorkerConfiguration ,
9191) -> anyhow:: Result < InitializedWorker > {
92- log:: info!( "Starting hyperqueue worker {}" , crate :: HQ_VERSION ) ;
92+ log:: info!( "Starting hyperqueue worker" ) ;
9393 let server_dir = ServerDir :: open ( server_directory) . context ( "Cannot load server directory" ) ?;
9494 let record = server_dir. read_worker_access_record ( ) . with_context ( || {
9595 format ! (
You can’t perform that action at this time.
0 commit comments