diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-08-05 10:26:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-05 10:26:59 +0100 |
commit | c8935fb53f122b367eda61ec7811c406193d29ba (patch) | |
tree | 928c78461943f180dde6b2b4e4cd1d26792248f1 /internal/log_unix.go | |
parent | 1b7f84250a46b401eccb89acafdef1b379f2dbc0 (diff) |
Do not use `ioutil` as it is deprecated (#2625)
Diffstat (limited to 'internal/log_unix.go')
-rw-r--r-- | internal/log_unix.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/log_unix.go b/internal/log_unix.go index 1e1094f2..75332af7 100644 --- a/internal/log_unix.go +++ b/internal/log_unix.go @@ -18,7 +18,7 @@ package internal import ( - "io/ioutil" + "io" "log/syslog" "github.com/MFAshby/stdemuxerhook" @@ -63,7 +63,7 @@ func SetupHookLogging(hooks []config.LogrusHook, componentName string) { setupStdLogHook(logrus.InfoLevel) } // Hooks are now configured for stdout/err, so throw away the default logger output - logrus.SetOutput(ioutil.Discard) + logrus.SetOutput(io.Discard) } func checkSyslogHookParams(params map[string]interface{}) { |