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 19, 2023
1 parent 10a3127 commit 123967a
Show file tree
Hide file tree
Showing 6 changed files with 529 additions and 156 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
203 changes: 135 additions & 68 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 123967a

Please sign in to comment.