Commit c2a25857 authored by Dag Erling Smørgrav's avatar Dag Erling Smørgrav

When DIAGNOSTICS is defined, log every step that each session goes through,

along with some vital statistics, and flush the log regularly.


git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2215 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 99619278
......@@ -877,7 +877,21 @@ CNT_Session(struct sess *sp)
CHECK_OBJ_ORNULL(sp->backend, BACKEND_MAGIC);
switch (sp->step) {
#define STEP(l,u) case STP_##u: done = cnt_##l(sp); break;
#ifdef DIAGNOSTICS
#define STEP(l,u) \
case STP_##u: \
WSL(sp->wrk, SLT_Debug, sp->id, \
"cnt_%s(%p) xid %x obj %p vcl %p", \
#l, sp, sp->xid, sp->obj, sp->vcl); \
WSL_Flush(sp->wrk); \
done = cnt_##l(sp); \
break;
#else
#define STEP(l,u) \
case STP_##u: \
done = cnt_##l(sp); \
break;
#endif
#include "steps.h"
#undef STEP
default: INCOMPL();
......
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