logs
This commit is contained in:
parent
39f6483950
commit
955aa9dfc6
1 changed files with 3 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
use eva::{perfect_derive, component_configs::ComponentConfig, supervisor::SlaveRx};
|
||||
use eva::{logging as log, perfect_derive, component_configs::ComponentConfig, supervisor::SlaveRx};
|
||||
|
||||
use eyre::Context;
|
||||
use viendesu_core::{
|
||||
|
@ -40,6 +40,8 @@ pub async fn serve(rx: SlaveRx, config: ComponentConfig<Config>, router: axum::R
|
|||
.await
|
||||
.wrap_err("failed to bind address")?;
|
||||
|
||||
log::info!(at:% = listener.local_addr().unwrap(); "started HTTP server");
|
||||
|
||||
axum::serve(listener, router)
|
||||
.await
|
||||
.wrap_err("failed to serve")?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue