Commit 4769dd28 authored by Anders Berg's avatar Anders Berg

Added SessionReuse so I now write a logline for SessionClose and SessionReuse.

git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@614 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 7628bd0f
......@@ -106,6 +106,7 @@ extended_log_format(unsigned char *p, char *w_opt)
j = strlen(p + 4) - strlen(tmpPtr); // length of IP
strncpy(ll[u].df_h, p + 4, j);
ll[u].df_h[j] = '\0'; // put on a NULL at end of buffer.
printf("New session [%d]: %s \n",u, ll[u].df_h);
break;
......@@ -117,19 +118,19 @@ extended_log_format(unsigned char *p, char *w_opt)
break;
case SLT_StatAddr:
break;
case SLT_SessionClose:
printf("Closing session [%d]: %s %s\n",u, ll[u].df_h, ll[u].df_U);
printf("Session close [%d]: %s %s\n",u, ll[u].df_h, ll[u].df_U);
break;
case SLT_SessionReuse:
printf("Session reuse [%d]: %s %s\n",u, ll[u].df_h, ll[u].df_U);
break;
default:
break;
}
if (0) {
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment