moved log to ResponseWrapper

This commit is contained in:
Djeeberjr 2022-04-03 22:37:22 +02:00
parent fb818b86a2
commit 5a7c784680
2 changed files with 3 additions and 3 deletions

View File

@ -3,9 +3,12 @@ package override
import (
"net"
clog "github.com/coredns/coredns/plugin/pkg/log"
"github.com/miekg/dns"
)
var log = clog.NewWithPlugin("override")
type Rule struct {
Search net.IP
Override net.IP

View File

@ -6,11 +6,8 @@ import (
"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
clog "github.com/coredns/coredns/plugin/pkg/log"
)
var log = clog.NewWithPlugin("overide")
func init() {
plugin.Register("override", setup)
}