--- netloop.c.orig Sun Jul 31 18:36:40 2005 +++ netloop.c Sun Jul 31 18:36:40 2005 @@ -462,8 +462,12 @@ if (c->cstate == closed) { /* We should now log the closure of the connection and ending * of any authenticated session. */ - if (c->a) + if (c->a) { log_print(LOG_INFO, _("connections_post_select: client %s: finished session for `%s' with %s"), c->idstr, c->a->user, c->a->auth); + if (c->m) + log_print(LOG_NOTICE, _("%s[%d] %s%s %d, %d (%d), %d (%d)"), c->a->user, c->a->uid, c->remote_ip, (c->secured ? ":SSL" : ""), + time(NULL) - c->start_time, c->m->numdeleted, c->m->sizedeleted, c->m->num, c->m->totalsize); + } log_print(LOG_INFO, _("connections_post_select: client %s: disconnected; %d/%d bytes read/written"), c->idstr, c->nrd, c->nwr); /* remove_connection(c);*/