middleware/debug: add (#735)

* middleware/debug: add

Add a debug "middleware" that disables the recover() and just lets
CoreDNS crash; very useful for testing.

Fixes ##563

* fix test

* Feedback: check the value of Debug
This commit is contained in:
Miek Gieben
2017-06-13 15:47:17 -07:00
committed by Pat Moroney
parent 46bf7f3106
commit 8e86fa6f23
8 changed files with 137 additions and 28 deletions

View File

@@ -22,26 +22,27 @@
1:tls:tls
10:root:root
20:bind:bind
30:trace:trace
40:health:health
50:pprof:pprof
60:prometheus:metrics
70:errors:errors
80:log:log
90:chaos:chaos
100:cache:cache
110:rewrite:rewrite
120:loadbalance:loadbalance
130:dnssec:dnssec
140:reverse:reverse
150:hosts:hosts
160:kubernetes:kubernetes
170:file:file
180:auto:auto
190:secondary:secondary
200:etcd:etcd
210:proxy:proxy
220:whoami:whoami
230:erratic:erratic
30:debug:debug
40:trace:trace
50:health:health
60:pprof:pprof
70:prometheus:metrics
80:errors:errors
90:log:log
100:chaos:chaos
110:cache:cache
120:rewrite:rewrite
130:loadbalance:loadbalance
140:dnssec:dnssec
150:reverse:reverse
160:hosts:hosts
170:kubernetes:kubernetes
180:file:file
190:auto:auto
200:secondary:secondary
210:etcd:etcd
220:proxy:proxy
230:whoami:whoami
240:erratic:erratic
500:startup:github.com/mholt/caddy/startupshutdown
510:shutdown:github.com/mholt/caddy/startupshutdown