varnishcache / varnish-cache

Varnish Cache source code repository
https://www.varnish-cache.org
Other
3.68k stars 377 forks source link

need to communicate the reason if vcl_init fails in vcl passed at start time #2694

Closed nigoroll closed 6 years ago

nigoroll commented 6 years ago

When vcl_init fails loading the initial vcl (-f parameter), all we say is

Child (70751) Pushing vcls failed:
VCL "boot" Failed initialization

We should output basic information on the underlying problem, maybe the tail of the log?

bsdphk commented 6 years ago

There's a vsb available in VRT_CTX during vcl_init which is emitted as CLI result, that should be output for -f also if at all possible.

nigoroll commented 6 years ago

to confirm: this is looking good indeed.

test with {{new regex = re.regex("(");}}:

VCL "boot" Failed initialization
Message:
    vmod re: error compiling regex "(" in regex constructor: missing ) (at offset 1)