mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-10 05:27:07 +08:00
Remove uses of deprecated io/ioutil
The package has been deprecated since Go 1.16: https://go.dev/doc/go1.16#ioutil Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
package logutil
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"strings"
|
||||
|
||||
"github.com/sirupsen/logrus"
|
||||
@ -9,7 +9,7 @@ import (
|
||||
|
||||
func NewFilter(levels []logrus.Level, filters ...string) logrus.Hook {
|
||||
dl := logrus.New()
|
||||
dl.SetOutput(ioutil.Discard)
|
||||
dl.SetOutput(io.Discard)
|
||||
return &logsFilter{
|
||||
levels: levels,
|
||||
filters: filters,
|
||||
|
Reference in New Issue
Block a user