more debug messages

This commit is contained in:
Nikos Mavrogiannopoulos
2014-05-29 00:27:20 +02:00
parent 1e48d0d0de
commit 98ed640258

View File

@@ -226,6 +226,7 @@ struct cookie_entry_st *old;
/* check for a valid stored cookie */
if ((old=find_cookie_entry(&s->cookies, req->cookie.data, req->cookie.len)) != NULL) {
mslog(s, proc, LOG_DEBUG, "reusing cookie for '%s' (%u)", proc->username, (unsigned)proc->pid);
if (old->proc != NULL) {
mslog(s, old->proc, LOG_DEBUG, "disconnecting '%s' (%u) due to new cookie connection",
old->proc->username, (unsigned)old->proc->pid);
@@ -249,6 +250,8 @@ struct cookie_entry_st *old;
return -1;
}
mslog(s, proc, LOG_DEBUG, "new cookie for '%s' (%u)", proc->username, (unsigned)proc->pid);
proc->cookie_ptr = new_cookie_entry(&s->cookies, proc, req->cookie.data, req->cookie.len);
if (proc->cookie_ptr == NULL)
return -1;