Commit 6044f91a authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Dridi Boukelmoune

Panic reporting of backend health is a director function

parent 4cd71a88
......@@ -413,11 +413,6 @@ vbe_panic(const struct director *d, struct vsb *vsb)
VSB_printf(vsb, "ipv6 = %s,\n", bp->ipv6_addr);
VSB_printf(vsb, "port = %s,\n", bp->port);
VSB_printf(vsb, "hosthdr = %s,\n", bp->hosthdr);
VSB_printf(vsb, "health = %s,\n",
bp->director->health ? "healthy" : "sick");
VSB_printf(vsb, "admin_health = %s, changed = %f,\n",
VDI_Ahealth(bp->director),
bp->director->health_changed);
VSB_printf(vsb, "n_conn = %u,\n", bp->n_conn);
}
......
......@@ -244,6 +244,9 @@ VDI_Panic(const struct director *d, struct vsb *vsb, const char *nm)
VSB_printf(vsb, "%s = %p {\n", nm, d);
VSB_indent(vsb, 2);
VSB_printf(vsb, "vcl_name = %s,\n", d->vcl_name);
VSB_printf(vsb, "health = %s,\n", d->health ? "healthy" : "sick");
VSB_printf(vsb, "admin_health = %s, changed = %f,\n",
VDI_Ahealth(d), d->health_changed);
VSB_printf(vsb, "type = %s {\n", d->name);
VSB_indent(vsb, 2);
if (d->panic != NULL)
......
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