We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 878afcf commit 41a9b16Copy full SHA for 41a9b16
src/main.rs
@@ -23,8 +23,12 @@ async fn main() -> Result<(), Box<dyn error::Error>> {
23
24
let config_filepath = cli.config_filepath.unwrap_or("config.toml".into());
25
26
+ println!("Loading config from {config_filepath:?}");
27
+
28
let config = GlazedConfig::from_file(&config_filepath)?;
29
30
+ println!("Config loaded");
31
32
match cli.command {
33
Commands::Serve => serve(config).await,
34
}
@@ -46,6 +50,8 @@ async fn serve(config: GlazedConfig) -> Result<(), Box<dyn error::Error>> {
46
50
47
51
let listener = tokio::net::TcpListener::bind(config.bind_address).await?;
48
52
53
+ println!("Serving...");
54
49
55
axum::serve(listener, app).await?;
56
57
Ok(())
0 commit comments