Varnish panic API
Martin Blix Grydeland
martin at varnish-software.com
Thu Jul 2 14:07:18 CEST 2015
Hi phk,
Now that we expose the panic functions also to vmods, I believe we need to
define a somewhat cleaner way for different parts to produce the panic
output. It's the indentation and how that's hard coded into each panic
generator that's the major issue in my opinion, e.g. how the panic handler
in the backend vmod would have to now to insert 4 character whitespace on
each line in order to match it with where it's output would probably go in
the panic string.
The attached patch series changes this. It's a lot of patches, as it
changes all of the panic code slightly. First one shows the utility
functions I created for this purpose, and the rest are patches for
different panic string generators.
Martin
--
<http://varnish-software.com>*Martin Blix Grydeland*
Senior Developer | Varnish Software AS
Mobile: +47 992 74 756
We Make Websites Fly!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20150702/0837c58c/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Panic-utility-functions.patch
Type: text/x-patch
Size: 3996 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20150702/0837c58c/attachment-0016.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Change-pan_ic-to-use-new-panic.patch
Type: text/x-patch
Size: 3120 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20150702/0837c58c/attachment-0017.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Change-pan_backtrace.patch
Type: text/x-patch
Size: 2087 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20150702/0837c58c/attachment-0018.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Change-pan_req.patch
Type: text/x-patch
Size: 2950 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20150702/0837c58c/attachment-0019.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Change-pan_sess.patch
Type: text/x-patch
Size: 2371 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20150702/0837c58c/attachment-0020.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-Change-pan_wrk.patch
Type: text/x-patch
Size: 2699 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20150702/0837c58c/attachment-0021.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-Change-pan_busyobj.patch
Type: text/x-patch
Size: 3482 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20150702/0837c58c/attachment-0022.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-Change-pan_ws.patch
Type: text/x-patch
Size: 3202 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20150702/0837c58c/attachment-0023.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0009-Change-pan_objcore.patch
Type: text/x-patch
Size: 2747 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20150702/0837c58c/attachment-0024.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0010-Change-pan_http.patch
Type: text/x-patch
Size: 2261 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20150702/0837c58c/attachment-0025.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0011-Change-pan_htc.patch
Type: text/x-patch
Size: 1467 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20150702/0837c58c/attachment-0026.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0012-Change-VDI_Panic.patch
Type: text/x-patch
Size: 5468 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20150702/0837c58c/attachment-0027.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0013-Change-VCL_Panic.patch
Type: text/x-patch
Size: 2834 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20150702/0837c58c/attachment-0028.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0014-Call-VCL_Panic-also-from-pan_busyobj.patch
Type: text/x-patch
Size: 769 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20150702/0837c58c/attachment-0029.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0015-Drop-pan_vsp-now-that-it-s-unused.patch
Type: text/x-patch
Size: 1131 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20150702/0837c58c/attachment-0030.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0016-Change-a-couple-of-unused-panic-generators-to-the-ne.patch
Type: text/x-patch
Size: 2963 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20150702/0837c58c/attachment-0031.bin>
More information about the varnish-dev
mailing list