aboutsummaryrefslogtreecommitdiff
path: root/plugin/root/root.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/root/root.go')
-rw-r--r--plugin/root/root.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/root/root.go b/plugin/root/root.go
index 56fd42c01..a4f8ef808 100644
--- a/plugin/root/root.go
+++ b/plugin/root/root.go
@@ -1,11 +1,11 @@
package root
import (
- "log"
"os"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/plugin"
+ "github.com/coredns/coredns/plugin/pkg/log"
"github.com/mholt/caddy"
)
@@ -33,7 +33,7 @@ func setup(c *caddy.Controller) error {
if os.IsNotExist(err) {
// Allow this, because the folder might appear later.
// But make sure the user knows!
- log.Printf("[WARNING] Root path does not exist: %s", config.Root)
+ log.Warningf("Root path does not exist: %s", config.Root)
} else {
return plugin.Error("root", c.Errf("unable to access root path '%s': %v", config.Root, err))
}