Skip to content

Commit 41a9b16

Browse files
committed
Add printlns to main
1 parent 878afcf commit 41a9b16

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,12 @@ async fn main() -> Result<(), Box<dyn error::Error>> {
2323

2424
let config_filepath = cli.config_filepath.unwrap_or("config.toml".into());
2525

26+
println!("Loading config from {config_filepath:?}");
27+
2628
let config = GlazedConfig::from_file(&config_filepath)?;
2729

30+
println!("Config loaded");
31+
2832
match cli.command {
2933
Commands::Serve => serve(config).await,
3034
}
@@ -46,6 +50,8 @@ async fn serve(config: GlazedConfig) -> Result<(), Box<dyn error::Error>> {
4650

4751
let listener = tokio::net::TcpListener::bind(config.bind_address).await?;
4852

53+
println!("Serving...");
54+
4955
axum::serve(listener, app).await?;
5056

5157
Ok(())

0 commit comments

Comments
 (0)