Log ssld errors for servers and handshakes.

(serverlog)
This commit is contained in:
Jilles Tjoelker 2008-06-30 00:28:00 +02:00
parent 0d093bfee3
commit e5cdec73ac
1 changed files with 3 additions and 0 deletions

View File

@ -360,7 +360,10 @@ ssl_process_dead_fd(ssl_ctl_t *ctl, ssl_ctl_buf_t *ctl_buf)
if(client_p == NULL) if(client_p == NULL)
return; return;
if(IsAnyServer(client_p)) if(IsAnyServer(client_p))
{
sendto_realops_snomask(SNO_GENERAL, is_remote_connect(client_p) && !IsServer(client_p) ? L_NETWIDE : L_ALL, "ssld error for %s: %s", client_p->name, reason); sendto_realops_snomask(SNO_GENERAL, is_remote_connect(client_p) && !IsServer(client_p) ? L_NETWIDE : L_ALL, "ssld error for %s: %s", client_p->name, reason);
ilog(L_SERVER, "ssld error for %s: %s", log_client_name(client_p, SHOW_IP), reason);
}
exit_client(client_p, client_p, &me, reason); exit_client(client_p, client_p, &me, reason);
} }