From: andersb Date: Wed, 2 Aug 2006 22:53:56 +0000 (+0000) Subject: Added SessionReuse so I now write a logline for SessionClose and SessionReuse. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50728b52676b6e5701352ed09446a97e9d4fe17e;p=varnish Added SessionReuse so I now write a logline for SessionClose and SessionReuse. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@614 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishncsa/varnishncsa.c b/varnish-cache/bin/varnishncsa/varnishncsa.c index e9e8702f..e54089b4 100644 --- a/varnish-cache/bin/varnishncsa/varnishncsa.c +++ b/varnish-cache/bin/varnishncsa/varnishncsa.c @@ -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) { }