connects and disconnects to main are logged with LOG_INFO

This commit is contained in:
Nikos Mavrogiannopoulos
2015-02-27 21:37:12 +01:00
parent b1fe057f8c
commit fa55722897
2 changed files with 3 additions and 2 deletions

View File

@@ -259,8 +259,9 @@ struct proc_st *old_proc;
if (old_proc->pid > 0)
kill(old_proc->pid, SIGTERM);
mslog(s, proc, LOG_INFO, "resumed cookie session for user '%s' (using %s)", proc->username, proc->tls_ciphersuite);
} else {
mslog(s, proc, LOG_DEBUG, "new cookie session for user '%s' (%u)", proc->username, (unsigned)proc->pid);
mslog(s, proc, LOG_INFO, "new cookie session for user '%s' (using %s)", proc->username, proc->tls_ciphersuite);
}
if (cmsg->hostname)

View File

@@ -320,7 +320,7 @@ int session_close(main_server_st * s, struct proc_st *proc)
*/
void remove_proc(main_server_st * s, struct proc_st *proc, unsigned k)
{
mslog(s, proc, LOG_DEBUG, "removing client '%s' with id '%d'", proc->username, (int)proc->pid);
mslog(s, proc, LOG_INFO, "user '%s' disconnected", proc->username);
list_del(&proc->list);
s->active_clients--;