diff options
Diffstat (limited to 'plugin/log/setup.go')
-rw-r--r-- | plugin/log/setup.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugin/log/setup.go b/plugin/log/setup.go index 6f92fca3d..81a2004f2 100644 --- a/plugin/log/setup.go +++ b/plugin/log/setup.go @@ -5,6 +5,7 @@ import ( "github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/plugin" + "github.com/coredns/coredns/plugin/pkg/replacer" "github.com/coredns/coredns/plugin/pkg/response" "github.com/mholt/caddy" @@ -25,7 +26,7 @@ func setup(c *caddy.Controller) error { } dnsserver.GetConfig(c).AddPlugin(func(next plugin.Handler) plugin.Handler { - return Logger{Next: next, Rules: rules, ErrorFunc: dnsserver.DefaultErrorFunc} + return Logger{Next: next, Rules: rules, ErrorFunc: dnsserver.DefaultErrorFunc, repl: replacer.New()} }) return nil |