Skip to content

Commit

Permalink
chore(core): add console version logging
Browse files Browse the repository at this point in the history
  • Loading branch information
wsxiaoys committed May 6, 2024
1 parent de30a85 commit ce175c3
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion crates/tabby/src/routes/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,20 @@ pub async fn run_app(api: Router, ui: Option<Router>, 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(
Expand Down

0 comments on commit ce175c3

Please sign in to comment.