Added debug log to session closing and related functions

This commit is contained in:
VilhoRaatikka
2014-12-19 12:18:25 +02:00
parent 55447919ce
commit 726f221113
3 changed files with 25 additions and 0 deletions

View File

@ -4761,6 +4761,14 @@ static int router_handle_state_switch(
bref = (backend_ref_t *)data;
CHK_BACKEND_REF(bref);
LOGIF(LD, (skygw_log_write(LOGFILE_DEBUG,
"%lu [router_handle_state_switch] %s %s:%d in state %s",
pthread_self(),
STRDCBREASON(reason),
srv->name,
srv->port,
STRSRVSTATUS(srv))));
srv = bref->bref_backend->backend_server;
if (SERVER_IS_RUNNING(srv) && SERVER_IS_IN_CLUSTER(srv))