Add some logging

This commit is contained in:
2024-08-18 22:26:00 +02:00
parent 9d88c95f33
commit 86b5b47f1e
4 changed files with 20 additions and 2 deletions

View File

@@ -51,6 +51,9 @@ async fn socket_activate(config: ServerConfig) -> anyhow::Result<()> {
let conn = get_socket_from_systemd().await?;
let uid = conn.peer_cred()?.uid();
let unix_user = UnixUser::from_uid(uid.into())?;
log::info!("Accepted connection from {}", unix_user.username);
handle_requests_for_single_session(conn, &unix_user, &config).await?;
Ok(())