From: Timo Sirainen Date: Mon, 27 Aug 2018 07:35:47 +0000 (+0300) Subject: lib: connection - Clarify logging of incoming connections X-Git-Tag: 2.3.9~1498 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22700d25c37f7f3a5e830ede1f0fc7663079e48a;p=thirdparty%2Fdovecot%2Fcore.git lib: connection - Clarify logging of incoming connections Don't log "Client connected" for both incoming and outgoing connections. --- diff --git a/src/lib/connection.c b/src/lib/connection.c index 990d87f56e..8f49323233 100644 --- a/src/lib/connection.c +++ b/src/lib/connection.c @@ -262,7 +262,10 @@ void connection_init_server(struct connection_list *list, struct event_passthrough *e = event_create_passthrough(conn->event)-> set_name("client_connection_connected"); - e_debug(e->event(), "Client connected"); + /* fd_out differs from fd_in only for stdin/stdout. Keep the logging + output nice and clean by logging only the fd_in. If it's 0, it'll + also be obvious that fd_out=1. */ + e_debug(e->event(), "Server accepted connection (fd=%d)", fd_in); connection_init_streams(conn); }