From ce175c3415358fcf1deb069da816b7174c381b05 Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Mon, 6 May 2024 11:41:53 -0700 Subject: [PATCH] chore(core): add console version logging --- crates/tabby/src/routes/mod.rs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/crates/tabby/src/routes/mod.rs b/crates/tabby/src/routes/mod.rs index 7b8f8564b288..25124dee08d7 100644 --- a/crates/tabby/src/routes/mod.rs +++ b/crates/tabby/src/routes/mod.rs @@ -31,7 +31,20 @@ pub async fn run_app(api: Router, ui: Option, host: IpAddr, port: u16) { }; let address = SocketAddr::from((host, port)); - info!("Listening at {}", address); + let version = env!("CARGO_PKG_VERSION"); + println!( + r#" +████████╗ █████╗ ██████╗ ██████╗ ██╗ ██╗ +╚══██╔══╝██╔══██╗██╔══██╗██╔══██╗╚██╗ ██╔╝ + ██║ ███████║██████╔╝██████╔╝ ╚████╔╝ + ██║ ██╔══██║██╔══██╗██╔══██╗ ╚██╔╝ + ██║ ██║ ██║██████╔╝██████╔╝ ██║ + ╚═╝ ╚═╝ ╚═╝╚═════╝ ╚═════╝ ╚═╝ + +📄 Version {version} +🚀 Listening at {address} +"# + ); let listener = tokio::net::TcpListener::bind(address).await.unwrap(); axum::serve(