Skip to content

Commit

Permalink
refactor(server): add debug log when server accepts new connection
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Feb 13, 2018
1 parent dc619a8 commit 0ea3bcf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,8 @@ impl<S, B> Server<S, B>
// Future for our server's execution
let srv = incoming.for_each(|socket| {
let addr = socket.remote_addr;
debug!("accepted new connection ({})", addr);

let addr_service = SocketAddrService::new(addr, new_service.new_service()?);
let s = NotifyService {
inner: addr_service,
Expand Down

0 comments on commit 0ea3bcf

Please sign in to comment.