aboutsummaryrefslogtreecommitdiff
path: root/middleware/proxy/google.go
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2017-09-12 10:52:43 +0100
committerGravatar GitHub <noreply@github.com> 2017-09-12 10:52:43 +0100
commit3e252deabbfd9f0f384df4bf7b3847e9442f0b9f (patch)
treeefc796384a2c0c961e4e3914cf663e3aa2d5594d /middleware/proxy/google.go
parentc2105a4f41132286e3145872fc187ab4e75a24b4 (diff)
downloadcoredns-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/proxy/google.go')
-rw-r--r--middleware/proxy/google.go17
1 files changed, 1 insertions, 16 deletions
diff --git a/middleware/proxy/google.go b/middleware/proxy/google.go
index 205b09379..b7e605fcb 100644
--- a/middleware/proxy/google.go
+++ b/middleware/proxy/google.go
@@ -13,7 +13,6 @@ import (
"sync/atomic"
"time"
- "github.com/coredns/coredns/middleware/pkg/debug"
"github.com/coredns/coredns/middleware/pkg/healthcheck"
"github.com/coredns/coredns/request"
@@ -50,12 +49,6 @@ func (g *google) Exchange(ctx context.Context, addr string, state request.Reques
v.Set("name", state.Name())
v.Set("type", fmt.Sprintf("%d", state.QType()))
- optDebug := false
- if bug := debug.IsDebug(state.Name()); bug != "" {
- optDebug = true
- v.Set("name", bug)
- }
-
buf, backendErr := g.exchangeJSON(addr, v.Encode())
if backendErr == nil {
@@ -64,19 +57,11 @@ func (g *google) Exchange(ctx context.Context, addr string, state request.Reques
return nil, err
}
- m, debug, err := toMsg(gm)
+ m, err := toMsg(gm)
if err != nil {
return nil, err
}
- if optDebug {
- // reset question
- m.Question[0].Name = state.QName()
- // prepend debug RR to the additional section
- m.Extra = append([]dns.RR{debug}, m.Extra...)
-
- }
-
m.Id = state.Req.Id
return m, nil
}