diff options
author | 2021-10-13 15:30:31 +0800 | |
---|---|---|
committer | 2021-10-13 09:30:31 +0200 | |
commit | 5191959bd7278b6ec990093ec708c262d7ef416e (patch) | |
tree | 0a48bb5bfd5f18673edee9ab7aa55497aa28eefb /plugin/log | |
parent | 44fcca0e0d67d66dee72ef00d389a16c2ff066a9 (diff) | |
download | coredns-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.go | 4 |
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: ".", |