logs: Display listen ports/sockets for HTTP/LDAP
This commit is contained in:
parent
7b5b66f891
commit
ba20589ec9
1 changed files with 4 additions and 2 deletions
|
|
@ -47,8 +47,6 @@ async fn main() -> Result<(), GlobalError> {
|
|||
// .init();
|
||||
// tracing::subscriber::set_global_default(subscriber)?;
|
||||
|
||||
let ldap_listener = ListenerPath::new(&cli.listen_ldap)?.listener().await?;
|
||||
|
||||
let mut db = if let Some(db_path) = &cli.db {
|
||||
FilesystemDatabase::from_path(db_path).await.unwrap()
|
||||
} else {
|
||||
|
|
@ -57,9 +55,13 @@ async fn main() -> Result<(), GlobalError> {
|
|||
tracing::info!("Database loaded successfully");
|
||||
create_dummy_users(&mut db).await;
|
||||
|
||||
let ldap_listener = ListenerPath::new(&cli.listen_ldap)?.listener().await?;
|
||||
tracing::info!("Listening for LDAP requests on {}", ldap_listener.path);
|
||||
|
||||
#[cfg(feature = "http")]
|
||||
{
|
||||
let http_listener = ListenerPath::new(&cli.listen_http)?.listener().await?;
|
||||
tracing::info!("Listening for HTTP requests on {}", http_listener.path);
|
||||
let http_db = db.clone();
|
||||
tokio::spawn(http_listen(http_listener, http_db));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue