[master] e7d5fb68f Fix the VCL name of directors
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Tue Apr 16 17:59:07 UTC 2019
commit e7d5fb68f7bac45e7b96eaab48718516be60f73e
Author: Dridi Boukelmoune <dridi.boukelmoune at gmail.com>
Date: Tue Apr 16 19:55:38 2019 +0200
Fix the VCL name of directors
Instead of looking like the backend's VCL name we only get the symbol
name in logs, unlike the CLI. This brings back the full ${vcl}.${symbol}
name everywhere.
diff --git a/bin/varnishd/cache/cache_backend.c b/bin/varnishd/cache/cache_backend.c
index da1b7f8ed..2e590b85c 100644
--- a/bin/varnishd/cache/cache_backend.c
+++ b/bin/varnishd/cache/cache_backend.c
@@ -575,7 +575,7 @@ VRT_new_backend_clustered(VRT_CTX, struct vsmw_cluster *vc,
be->director = VRT_AddDirector(ctx,
vbp != NULL ? vbe_methods : vbe_methods_noprobe, be,
- "%s", vrt->vcl_name);
+ "%s.%s", VCL_Name(ctx->vcl), vrt->vcl_name);
if (be->director != NULL) {
/* for cold VCL, update initial director state */
More information about the varnish-commit
mailing list