diff options
author | KallyDev <[email protected]> | 2021-09-30 01:17:48 +0800 |
---|---|---|
committer | GitHub <[email protected]> | 2021-09-29 11:17:48 -0600 |
commit | c48fadc4a7655008d13076c7f757c36368e2ca13 (patch) | |
tree | 3fe2837e02e9b664dd5b86afbe42494ac20997f8 /logging.go | |
parent | 059fc32f002d00e980b438b3edbdf7b8bcdf9a90 (diff) | |
download | caddy-c48fadc4a7655008d13076c7f757c36368e2ca13.tar.gz caddy-c48fadc4a7655008d13076c7f757c36368e2ca13.zip |
Move from deprecated ioutil to os and io packages (#4364)
Diffstat (limited to 'logging.go')
-rw-r--r-- | logging.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/logging.go b/logging.go index 7837145da..129aec430 100644 --- a/logging.go +++ b/logging.go @@ -18,7 +18,6 @@ import ( "encoding/json" "fmt" "io" - "io/ioutil" "log" "os" "strings" @@ -630,9 +629,9 @@ func (StderrWriter) OpenWriter() (io.WriteCloser, error) { return notClosable{os.Stderr}, nil } -// OpenWriter returns ioutil.Discard that can't be closed. +// OpenWriter returns io.Discard that can't be closed. func (DiscardWriter) OpenWriter() (io.WriteCloser, error) { - return notClosable{ioutil.Discard}, nil + return notClosable{io.Discard}, nil } // notClosable is an io.WriteCloser that can't be closed. |