along with some vital statistics, and flush the log regularly.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2215
d4fa192b-c00b-0410-8231-
f00ffab90ce4
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();