diff options
author | 2017-09-12 10:52:43 +0100 | |
---|---|---|
committer | 2017-09-12 10:52:43 +0100 | |
commit | 3e252deabbfd9f0f384df4bf7b3847e9442f0b9f (patch) | |
tree | efc796384a2c0c961e4e3914cf663e3aa2d5594d /middleware/pkg/debug/debug.go | |
parent | c2105a4f41132286e3145872fc187ab4e75a24b4 (diff) | |
download | coredns-3e252deabbfd9f0f384df4bf7b3847e9442f0b9f.tar.gz coredns-3e252deabbfd9f0f384df4bf7b3847e9442f0b9f.tar.zst coredns-3e252deabbfd9f0f384df4bf7b3847e9442f0b9f.zip |
Remove debug queries (#1058)
* Remove debug from interface and methods
* remove debug queries from etcd
* remove debug queries from k8s - they were not used
* And remove from mw/proxy-google as well
* Remove debug query test
Diffstat (limited to 'middleware/pkg/debug/debug.go')
-rw-r--r-- | middleware/pkg/debug/debug.go | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/middleware/pkg/debug/debug.go b/middleware/pkg/debug/debug.go deleted file mode 100644 index 7da79608b..000000000 --- a/middleware/pkg/debug/debug.go +++ /dev/null @@ -1,21 +0,0 @@ -package debug - -import "strings" - -// Name is the domain prefix we check for when it is a debug query. -const Name = "o-o.debug." - -// IsDebug checks if name is a debugging name, i.e. starts with o-o.debug. -// it returns the empty string if it is not a debug message, otherwise it will return the -// name with o-o.debug. stripped off. Name will be lowercased before comparing. -func IsDebug(name string) string { - if len(name) == len(Name) { - return "" - } - name = strings.ToLower(name) - debug := strings.HasPrefix(name, Name) - if !debug { - return "" - } - return name[len(Name):] -} |