diff --git a/pkg/utils/logRedirector.go b/pkg/utils/logRedirector.go index 7bfa3881..d1a1538a 100644 --- a/pkg/utils/logRedirector.go +++ b/pkg/utils/logRedirector.go @@ -7,7 +7,6 @@ package utils import ( "io" - "io/ioutil" "log" galasaErrors "github.com/galasa-dev/cli/pkg/errors" @@ -29,7 +28,7 @@ func CaptureLog(fileSystem files.FileSystem, logFileName string) error { } else { if logFileName == "" { // Log not specified, so needs to be suppressed. - log.SetOutput(ioutil.Discard) + log.SetOutput(io.Discard) } else { var isLogFileExisting bool