diff options
Diffstat (limited to 'plugin/file/xfr.go')
-rw-r--r-- | plugin/file/xfr.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/file/xfr.go b/plugin/file/xfr.go index 4a03779ed..4b74dd1e5 100644 --- a/plugin/file/xfr.go +++ b/plugin/file/xfr.go @@ -2,9 +2,9 @@ package file import ( "fmt" - "log" "github.com/coredns/coredns/plugin" + "github.com/coredns/coredns/plugin/pkg/log" "github.com/coredns/coredns/request" "github.com/miekg/dns" @@ -38,7 +38,7 @@ func (x Xfr) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (in j, l := 0, 0 records = append(records, records[0]) // add closing SOA to the end - log.Printf("[INFO] Outgoing transfer of %d records of zone %s to %s started", len(records), x.origin, state.IP()) + log.Infof("Outgoing transfer of %d records of zone %s to %s started", len(records), x.origin, state.IP()) for i, r := range records { l += dns.Len(r) if l > transferLength { |