nigoroll / libvmod-dynamic

The Varnish dns/named director continued
BSD 2-Clause "Simplified" License
94 stars 34 forks source link

How to see the vmod-dynamic logs #15

Closed danielmotaleite closed 7 years ago

danielmotaleite commented 7 years ago

Hi

I usually debug varnish using varnishlog, but since i added vmod-dynamic i have the problem that i do not see any log related with vmod-dynamic.

https://github.com/nigoroll/libvmod-dynamic/blob/master/src/vmod_dynamic.vcc seems to say that it should log something, but refers no way to enable that log

So how can enable/check the vmod log? is there any vmod option that i'm unfamiliar with?

Thanks

dridi commented 7 years ago

The logs from this module can happen during or outside transactions. To see the logs from outside transactions, you need raw grouping in varnishlog.

You can try this:

varnishlog -g raw -q '* ~ vmod-dynamic'
danielmotaleite commented 7 years ago

Perfect! Thanks for the help!

Can you please add this to the documentation, it is very useful :)

dridi commented 7 years ago

Keeping this one open: although it is documented in Varnish, it's not the first time I got this question. I will close this ticket with a docfix, giving users directions to upstream Varnish docs on logs.