diff options
Diffstat (limited to 'plugin/log/setup.go')
-rw-r--r-- | plugin/log/setup.go | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/plugin/log/setup.go b/plugin/log/setup.go index 1f9501d68..c3c1af4ca 100644 --- a/plugin/log/setup.go +++ b/plugin/log/setup.go @@ -1,9 +1,6 @@ package log import ( - "log" - "os" - "github.com/coredns/coredns/core/dnsserver" "github.com/coredns/coredns/plugin" "github.com/coredns/coredns/plugin/pkg/response" @@ -25,15 +22,6 @@ func setup(c *caddy.Controller) error { return plugin.Error("log", err) } - // Open the log files for writing when the server starts - c.OnStartup(func() error { - for i := 0; i < len(rules); i++ { - rules[i].Log = log.New(os.Stdout, "", 0) - } - - return nil - }) - dnsserver.GetConfig(c).AddPlugin(func(next plugin.Handler) plugin.Handler { return Logger{Next: next, Rules: rules, ErrorFunc: dnsserver.DefaultErrorFunc} }) |