From d9bc6d04f7f03fc1a867c7320784722df46e0efa Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 11 Sep 2016 23:30:33 +0900 Subject: [PATCH] nghttpx: Log client address --- src/shrpx_connection_handler.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shrpx_connection_handler.cc b/src/shrpx_connection_handler.cc index 50f54664..ae9ddc0f 100644 --- a/src/shrpx_connection_handler.cc +++ b/src/shrpx_connection_handler.cc @@ -358,7 +358,8 @@ void ConnectionHandler::graceful_shutdown_worker() { int ConnectionHandler::handle_connection(int fd, sockaddr *addr, int addrlen, const UpstreamAddr *faddr) { if (LOG_ENABLED(INFO)) { - LLOG(INFO, this) << "Accepted connection. fd=" << fd; + LLOG(INFO, this) << "Accepted connection from " + << util::numeric_name(addr, addrlen) << ", fd=" << fd; } if (get_config()->num_worker == 1) {