[master] aedc4d6 Also enable VCL_trace in vcl_init/fini which doesn't have buffered vsl.
Poul-Henning Kamp
phk at FreeBSD.org
Fri Feb 3 10:45:06 CET 2017
commit aedc4d68cfeb660a296684862f8e82e8b5364a0a
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Fri Feb 3 09:37:18 2017 +0000
Also enable VCL_trace in vcl_init/fini which doesn't have buffered vsl.
diff --git a/bin/varnishd/cache/cache_vcl.c b/bin/varnishd/cache/cache_vcl.c
index 1ddfb0c..a380256 100644
--- a/bin/varnishd/cache/cache_vcl.c
+++ b/bin/varnishd/cache/cache_vcl.c
@@ -521,6 +521,9 @@ VRT_count(VRT_CTX, unsigned u)
if (ctx->vsl != NULL)
VSLb(ctx->vsl, SLT_VCL_trace, "%u %u.%u", u,
ctx->vcl->conf->ref[u].line, ctx->vcl->conf->ref[u].pos);
+ else
+ VSL(SLT_VCL_trace, 0, "%u %u.%u", u,
+ ctx->vcl->conf->ref[u].line, ctx->vcl->conf->ref[u].pos);
}
VCL_VCL
More information about the varnish-commit
mailing list