nghttpx: Log client address

This commit is contained in:
Tatsuhiro Tsujikawa 2016-09-11 23:30:33 +09:00
parent 905e16cb99
commit d9bc6d04f7
1 changed files with 2 additions and 1 deletions

View File

@ -358,7 +358,8 @@ void ConnectionHandler::graceful_shutdown_worker() {
int ConnectionHandler::handle_connection(int fd, sockaddr *addr, int addrlen, int ConnectionHandler::handle_connection(int fd, sockaddr *addr, int addrlen,
const UpstreamAddr *faddr) { const UpstreamAddr *faddr) {
if (LOG_ENABLED(INFO)) { 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) { if (get_config()->num_worker == 1) {