aboutsummaryrefslogtreecommitdiff
path: root/plugin/log
diff options
context:
space:
mode:
authorGravatar Zou Nengren <zouyee1989@gmail.com> 2021-10-13 15:30:31 +0800
committerGravatar GitHub <noreply@github.com> 2021-10-13 09:30:31 +0200
commit5191959bd7278b6ec990093ec708c262d7ef416e (patch)
tree0a48bb5bfd5f18673edee9ab7aa55497aa28eefb /plugin/log
parent44fcca0e0d67d66dee72ef00d389a16c2ff066a9 (diff)
downloadcoredns-5191959bd7278b6ec990093ec708c262d7ef416e.tar.gz
coredns-5191959bd7278b6ec990093ec708c262d7ef416e.tar.zst
coredns-5191959bd7278b6ec990093ec708c262d7ef416e.zip
cleanup deprecated package io/ioutil (#4920)
Signed-off-by: zounengren <zouyee1989@gmail.com>
Diffstat (limited to 'plugin/log')
-rw-r--r--plugin/log/log_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/log/log_test.go b/plugin/log/log_test.go
index 16efb2026..1914e05f3 100644
--- a/plugin/log/log_test.go
+++ b/plugin/log/log_test.go
@@ -3,7 +3,7 @@ package log
import (
"bytes"
"context"
- "io/ioutil"
+ "io"
"log"
"strings"
"testing"
@@ -240,7 +240,7 @@ func TestLogged(t *testing.T) {
}
func BenchmarkLogged(b *testing.B) {
- log.SetOutput(ioutil.Discard)
+ log.SetOutput(io.Discard)
rule := Rule{
NameScope: ".",