aws / amazon-ecs-service-connect-agent

Amazon ECS Service Connect Agent
Apache License 2.0
27 stars 10 forks source link

Support all Envoy log levels #77

Closed liubnu closed 4 months ago

liubnu commented 4 months ago

Summary

Support all Envoy log levels in configuration.

Implementation details

Refer to https://www.envoyproxy.io/docs/envoy/latest/start/quick-start/run-envoy#debugging-envoy for currently supported log levels in Envoy.

Testing

New tests cover the changes: yes

Test passed

--- PASS: TestOffLogLevel (0.00s)
=== RUN   TestInvalidLogLevel
time="2024-04-17T15:48:22Z" level=info msg="App Mesh Environment Variables: []"
time="2024-04-17T15:48:22Z" level=info msg="Envoy Environment Variables: [ENVOY_LOG_LEVEL=doomsday]"
time="2024-04-17T15:48:22Z" level=info msg="Agent Environment Variables: []"
time="2024-04-17T15:48:22Z" level=warning msg="Envoy log level [doomsday] is not supported, setting it to default [info]."

Description for the changelog

Refer to https://github.com/aws/amazon-ecs-service-connect-agent/issues/76

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.