aws / aws-network-policy-agent

Apache License 2.0
42 stars 23 forks source link

Ability to change the logging level for the network policy agent container #270

Open uditsidana opened 2 months ago

uditsidana commented 2 months ago

What would you like to be added: Ability to control the logging level for network policy agent container.

Why is this needed: As the default logging level for network policy agent container is set to "info", for long running nodes this can accumulate a lot of logs. Therefore, could we pass in an env variable just like ipamd or an argument to tune down the logging level.

atilsensalduz commented 4 weeks ago

That's what the log-level argument is for, isn't it?

https://github.com/aws/aws-network-policy-agent/blob/dc9a6a82adf6b3d83956830c6e4451fb1e5da820/pkg/config/controller_config.go#L6