Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nakulkar-msft committed Aug 30, 2023
1 parent 896d8fa commit 8c5174a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion common/fe-ste-models.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion common/logger_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
}
Expand Down
3 changes: 0 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand All @@ -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
Expand Down

0 comments on commit 8c5174a

Please sign in to comment.