aboutsummaryrefslogtreecommitdiff
path: root/plugin/cache/cache.go
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/cache/cache.go')
-rw-r--r--plugin/cache/cache.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugin/cache/cache.go b/plugin/cache/cache.go
index 911ea11b6..f27c0c9d3 100644
--- a/plugin/cache/cache.go
+++ b/plugin/cache/cache.go
@@ -4,11 +4,11 @@ package cache
import (
"encoding/binary"
"hash/fnv"
- "log"
"time"
"github.com/coredns/coredns/plugin"
"github.com/coredns/coredns/plugin/pkg/cache"
+ "github.com/coredns/coredns/plugin/pkg/log"
"github.com/coredns/coredns/plugin/pkg/response"
"github.com/coredns/coredns/request"
@@ -178,13 +178,13 @@ func (w *ResponseWriter) set(m *dns.Msg, key int, mt response.Type, duration tim
case response.OtherError:
// don't cache these
default:
- log.Printf("[WARNING] Caching called with unknown classification: %d", mt)
+ log.Warningf("Caching called with unknown classification: %d", mt)
}
}
// Write implements the dns.ResponseWriter interface.
func (w *ResponseWriter) Write(buf []byte) (int, error) {
- log.Print("[WARNING] Caching called with Write: not caching reply")
+ log.Warning("Caching called with Write: not caching reply")
if w.prefetch {
return 0, nil
}