From 8c5174a186a65f28c84b76b135e6ba4e81b8288f Mon Sep 17 00:00:00 2001 From: Narasimha Kulkarni <63087328+nakulkar-msft@users.noreply.github.com> Date: Wed, 30 Aug 2023 16:08:45 +0530 Subject: [PATCH] Fix CI --- common/fe-ste-models.go | 2 +- common/logger_unix.go | 2 +- main.go | 3 --- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/common/fe-ste-models.go b/common/fe-ste-models.go index b338c121b..10092302f 100644 --- a/common/fe-ste-models.go +++ b/common/fe-ste-models.go @@ -399,7 +399,7 @@ func (ll LogLevel) String() string { //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // LogSanitizer can be implemented to clean secrets from lines logged by ForceLog -// By default no implemetation is provided here, because pipeline may be used in many different +// By default no implementation is provided here, because pipeline may be used in many different // contexts, so the correct implementation is context-dependent type LogSanitizer interface { SanitizeLogMessage(raw string) string diff --git a/common/logger_unix.go b/common/logger_unix.go index c9122bc7b..003e00310 100644 --- a/common/logger_unix.go +++ b/common/logger_unix.go @@ -43,7 +43,7 @@ type sysLogger struct { func NewSysLogger(jobID JobID, minimumLevelToLog LogLevel, logSuffix string) ILoggerResetable { return &sysLogger{ jobID: jobID, - minimumLevelToLog: minimumLevelToLog.ToPipelineLogLevel(), + minimumLevelToLog: minimumLevelToLog, logSuffix: logSuffix, sanitizer: NewAzCopyLogSanitizer(), } diff --git a/main.go b/main.go index 537b26a8d..e7c5fa501 100644 --- a/main.go +++ b/main.go @@ -28,7 +28,6 @@ import ( "runtime" "time" - "github.com/Azure/azure-pipeline-go/pipeline" "github.com/Azure/azure-storage-azcopy/v10/cmd" "github.com/Azure/azure-storage-azcopy/v10/common" ) @@ -37,8 +36,6 @@ import ( var glcm = common.GetLifecycleMgr() func main() { - pipeline.SetLogSanitizer(common.NewAzCopyLogSanitizer()) // make sure SyslogDisabled logs get secrets redacted - rand.Seed(time.Now().UnixNano()) // make sure our random numbers actually are random (but remember, use crypto/rand for anything where strong/reliable randomness is required azcopyLogPathFolder := common.GetLifecycleMgr().GetEnvironmentVariable(common.EEnvironmentVariable.LogLocation()) // user specified location for log files