diff options
author | 2016-04-19 22:51:23 +0100 | |
---|---|---|
committer | 2016-04-19 22:51:23 +0100 | |
commit | e726dca2eec90a01e26487aaaa4adfd27e364445 (patch) | |
tree | fc43c13a4f6d8cf3710b6c504d89bfd387c23e8a /middleware | |
parent | a1e6cb7cf44a4e9d1693ca694fdcfed9b4a76c19 (diff) | |
download | coredns-e726dca2eec90a01e26487aaaa4adfd27e364445.tar.gz coredns-e726dca2eec90a01e26487aaaa4adfd27e364445.tar.zst coredns-e726dca2eec90a01e26487aaaa4adfd27e364445.zip |
Fix error reporting (#128)
Put error back in the correct place in the directives.go. Also don't
make it a pointer. If it *is* a pointer the buildstack function does
not correctly set the Next Handler. Don't understand *why* this is
different from Caddy. Anyway this fixes it, with the caveat that
the error log file is now openend earlier in the startup.
Fixes #127
Diffstat (limited to 'middleware')
-rw-r--r-- | middleware/etcd/handler.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/middleware/etcd/handler.go b/middleware/etcd/handler.go index 729b049cc..38e1b51cd 100644 --- a/middleware/etcd/handler.go +++ b/middleware/etcd/handler.go @@ -73,7 +73,6 @@ func (e Etcd) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (i return e.Err(zone, dns.RcodeNameError, state) } if err != nil { - println("returning error", err.Error()) return dns.RcodeServerFailure, err } |