From 0b0e6dd1d5384f1d8fa95997ed2de6d6674a7b2b Mon Sep 17 00:00:00 2001 From: Holly Hunt Date: Thu, 18 Apr 2024 14:19:04 +0100 Subject: [PATCH] replaced deprecated function Signed-off-by: Holly Hunt --- pkg/utils/logRedirector.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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