Commit 26886ef5 authored by Nils Goroll's avatar Nils Goroll

Add some minimal debugging for fetch/deliver processors for a start

parent eb58d799
......@@ -85,6 +85,9 @@ VDP_push(struct req *req, const struct vdp *vdp, void *priv, int bottom)
AN(vdp->name);
AN(vdp->func);
if (DO_DEBUG(DBG_PROCESSORS))
VSLb(req->vsl, SLT_Debug, "VDP_push(%s)", vdp->name);
vdpe = WS_Alloc(req->ws, sizeof *vdpe);
if (vdpe == NULL)
return;
......
......@@ -141,6 +141,9 @@ VFP_Open(struct vfp_ctx *vc)
VTAILQ_FOREACH_REVERSE(vfe, &vc->vfp, vfp_entry_s, list) {
if (vfe->vfp->init == NULL)
continue;
if (DO_DEBUG(DBG_PROCESSORS))
VSLb(vc->wrk->vsl, SLT_Debug, "VFP_Open(%s)",
vfe->vfp->name);
vfe->closed = vfe->vfp->init(vc, vfe);
if (vfe->closed != VFP_OK && vfe->closed != VFP_NULL) {
(void)VFP_Error(vc, "Fetch filter %s failed to open",
......
......@@ -48,6 +48,7 @@ DEBUG_BIT(DROP_POOLS, drop_pools, "Drop thread pools (testing)")
DEBUG_BIT(SLOW_ACCEPTOR, slow_acceptor, "Slow down Acceptor")
DEBUG_BIT(H2_NOCHECK, h2_nocheck, "Disable various H2 checks")
DEBUG_BIT(VMOD_SO_KEEP, vmod_so_keep, "Keep copied VMOD libraries")
DEBUG_BIT(PROCESSORS, processors, "Fetch/Deliver processors")
#undef DEBUG_BIT
/*lint -restore */
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