Skip to content

Commit

Permalink
Update logger Config setter access pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
timj-hh committed Dec 14, 2023
1 parent ddcc514 commit cdd95b1
Show file tree
Hide file tree
Showing 6 changed files with 366 additions and 136 deletions.
6 changes: 4 additions & 2 deletions agent/app/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,11 @@ func Run(arguments []string) int {
}

if *parsedArgs.LogLevel != "" {
logger.SetLevel(*parsedArgs.LogLevel, *parsedArgs.LogLevel)
logger.SetDriverLogLevel(*parsedArgs.LogLevel)
logger.SetInstanceLogLevel(*parsedArgs.LogLevel)
} else {
logger.SetLevel(*parsedArgs.DriverLogLevel, *parsedArgs.InstanceLogLevel)
logger.SetDriverLogLevel(*parsedArgs.DriverLogLevel)
logger.SetInstanceLogLevel(*parsedArgs.InstanceLogLevel)
}

// Create an Agent object
Expand Down
188 changes: 122 additions & 66 deletions agent/vendor/github.com/aws/amazon-ecs-agent/ecs-agent/logger/log.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit cdd95b1

Please sign in to comment.